WinCreatOffscreenWindow returns one of the three error codes.

errNone: No error.
sysErrParamErr: The width or height parameter is NULL or the current color
table is invalid.
sysErrNoFreeResource: There is not enough memory to complete the function.

It is wired to understand the number, just test it with an if / switch
statement. You should do it like this anyway. ;-) 
 
I guess it is the memory / resource one. Storage is very limited. I used
WinCreateOffscreenWindow to prepare Bitmap exports and ran into memory
problems soon. In the end I tested the free memory in advance and calculated
the maximum size afterwards. I remember that genericFormat is the format
that uses up most memory...

Grüße, Harald

-
http://www.gps-laptimer.de



-----Original Message-----
From: %%email.bounce%@ [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Swanson
Sent: Donnerstag, 26. Juli 2007 01:13
To: Palm Developer Forum
Subject: RE: Palm offscreen windows


When I call the following...


m_windowHandle = WinCreateOffscreenWindow (320, 640, genericFormat,
&result);
        
result contains error code 1283 and m_windowHandle = NULL.  What am I doing
wrong?

-----Original Message-----
From: %%email.bounce%% [mailto:%%email.bounce%%] On Behalf Of Harald
Schlangmann
Sent: Wednesday, July 25, 2007 7:02 PM
To: Palm Developer Forum
Subject: RE: Palm offscreen windows

Yes, that works. Take care of your heap memory.

Kind regards, Harald
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: 7/25/2007
1:16 AM
 


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe,
please see http://www.access-company.com/developers/forums/



-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to