Hi,
Other than pairing the calls toWinSaveBits()/WinRestoreBits() are
there any other clean up steps I need to do? I've got a Palm app with
an "undo" feature; and thus it makes great use of the aforementioned
functions. If I do about 100 back to back calls of
WinSaveBits/WinRestoreBits I get the message:
"Bitmap.c, Line:91, NoFreeResource"
I continue and get
"UIResource.c, Line:83, Out of dynamic memory"
Obviously there is some call to free up the memory allocated for bitmap
resources created by WinSaveBits, but I can't find any mention of it.
After doing a WinRestoreBits() I used WinValidateHandle() to check
theWinHandle and indeed it was no longer good (NULL pointer). So what
steps am I missing? (FTR I'm using POSE 3.0a3 with the 3.5 debug rom.)
--Bruce Fistel
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Bruce Fistel
Zaphod Industries, Inc.
P.O. Box 442
Northwood, NH 03261-0442
[EMAIL PROTECTED] (email)
603 942-5077 (voice)
603 942-7466 (fax)
"If you pick up a starving dog and make him prosperous he will not bite
you. This
is the principal difference between a dog and a man."
- Mark Twain
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*