DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error in CreateCompatibleBitmap 0x00000057

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
highlycaffeinated



Joined: 12 Dec 2008
Posts: 6

PostPosted: Mon Jan 12, 2009 9:49 am    Post subject: Error in CreateCompatibleBitmap 0x00000057 Reply with quote

Hello-

I am running into an problem trying to call dplot.DPlot_GetBitmap(docNum, 200, 50) from my C# program. The error message I am getting is "Error in CreateCompatibleBitmap=0x00000057, size=2089890447w x 570h. Obviously I don't really want a bitmap that is 2 billion pixels wide...I only asked for 200! I verified that my docNum parameter is valid and looking at DPlot, the plot appears to be correct. Any ideas why this might be happening?

Thanks,
David
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Mon Jan 12, 2009 11:39 pm    Post subject: Reply with quote

David,
What version of DPlot are you running? Another user had a very strange problem with DPlot not correctly interpreting values sent by DDE. It turned out to be a weird interaction between compressing dplot.exe with UPX and... well, something. I could never duplicate the problem on any of my systems but he has seen this on several XP systems. Version 2.2.2.5 doesn't use UPX, and his problem went away.

(I'm glad to hear you don't want a 2 billion pixel-wide bitmap. I actually have had stranger requests Smile)
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
highlycaffeinated



Joined: 12 Dec 2008
Posts: 6

PostPosted: Tue Jan 13, 2009 8:26 am    Post subject: Reply with quote

Hi David,

Thanks for your response. I am (now) using DPlot Jr v2.2.2.5 having just updated from 2.1.9.x. Unfortunately, I'm still seeing the same error. I suspect it is something specific to the plot I've created as I'm able to get bitmaps of other plots just fine. Any other ideas of where to look?

Thanks
David
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Jan 13, 2009 10:54 am    Post subject: Reply with quote

Just one: Try using [SetImageCrop(0)] to see if that makes a difference.

If it doesn't... if you can send your source to me please do that.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
highlycaffeinated



Joined: 12 Dec 2008
Posts: 6

PostPosted: Tue Jan 13, 2009 4:35 pm    Post subject: Reply with quote

Thanks for the suggestion. I tried the SetImageCrop command and it didn't solve the problem. I've e-mailed you the relevant source. Hopefully you'll find some clues in there.

Thanks again,
David
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Jan 13, 2009 5:11 pm    Post subject: Reply with quote

File received, thanks. Will get to the bottom of this tonight. For now... soccer time.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group