on 27/04/00 13:52, Keith Wolcott at [EMAIL PROTECTED] wrote:
> Florent,
>
> 0x80000000 jogged my memory and a search turned up the email of Bob Ebert in
> January that seems relevant to your situation. It
> follows.
Keith,
Thank you very much! After a long pass of disassembling and step-tracing in
the debug ROMS, I came to the same conclusion and found that the problem was
in part due to the debug version of FrmSetActiveForm().
What happens is that the debug roms version of FrmSetActiveForm() checks if
the form has been drawn (this is a reserved bit in the form attributes), and
if not, sets the current window to NULL (which, in turn, sets it to
0x8000000 as explained by Bob Ebert) silently without saying anything. This
does not happen on the release roms. Worse, the WinRGBToIndex and some other
Win routines do not warn you against the invalid value.
Glad I finally figured this out, and that it is exactly the problem
described in Bob's e-mail.
Thanks again,
Florent.
--
Florent Pillet, Software Architect
OPTeWAY S.A., 80 route des Lucioles, ACTE Immeuble Delta
06901 Sophia Antipolis cedex, FRANCE
Ph: +33 4 93 95 66 51, Fx: +33 4 93 95 66 52, http://www.opteway.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html