RE: GetDIBits() return values

"Bryan Wagstaff" <[email protected]> Wed, 4 Jan 2006 18:29:22 -0700
Newsgroups gmane.games.devel.windows
Message-ID <002101c61197$74f49e00$0200a8c0@starlight>
Are you absolutely positive you don't call anything that sets the Windows
error before you read it?

I spent a few days trying to figure out why a certain bit of code always
logged windows error 2, but I couldn't get an error when run in the
debugger.  After a while, I realized that the logging macros were resetting
the error code to either 0 or 2.  The error 2 came from trying to write to
the debugger when it wasn't attached.

Just something to look for.


Bryan.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Brian
Hook
Sent: Wednesday, January 04, 2006 3:42 PM
To: [email protected]
Subject: [GD-Windows] GetDIBits() return values

On occasion GetDIBits() returns 0, indicating failure, but 
GetLastError() returns 0, indicating success.  The dimensions I pass 
in are scan start=0,scanlines=12.  Everything seems to work fine, but 
very occasionally (< 1% of the time) I get a return value that != 12.

Anyone know under what conditions this might happen?

Thanks,

Brian



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU5