RE: [GD-Windows] GetDIBits() return values
Brought to you by:
vexxed72
From: Bryan W. <br...@xm...> - 2006-01-05 01:29:38
|
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: gam...@li... [mailto:gam...@li...] On Behalf Of = Brian Hook Sent: Wednesday, January 04, 2006 3:42 PM To: gam...@li... Subject: [GD-Windows] GetDIBits() return values On occasion GetDIBits() returns 0, indicating failure, but=20 GetLastError() returns 0, indicating success. The dimensions I pass=20 in are scan start=3D0,scanlines=3D12. Everything seems to work fine, = but=20 very occasionally (< 1% of the time) I get a return value that !=3D 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_id=16865&op=3Dick _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 |