The plot thickens...
Not thinking, I decided to piggyback the form ID in the charPtr of the list
object. But guess what, you can't retrieve the list pointer because
FrmGetActiveForm returns NULL within the draw call back!!! (I'm was
attempting to preserve the list of entries by adding/modifying only one)
So I guess within a draw callback and on OS 3.3+ I can't get any object
pointers because FrmGetActiveForm only returns NULL. All works well with OS
< 3.1. I've even wrote a simple app with a button and list and get the same
results.
Whats an engineer to do?
-----Original Message-----
From: Dave Lippincott <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Friday, April 28, 2000 9:04 AM
Subject: Re: FrmGetActiveForm Weirdness
>I thought along the same lines (avoiding globals) but I'm still under the
>impression that OS is not doing something correctly in 3.3+ or that a
>limitation that was not imposed on earlier OS versions is now being
>enforced. I don't have the OS 3.5 sources yet (Dave - wink wink, nudge
>nudge) to check why this could happen.
>
>In any case, I will get the code to work but still want to understand the
>root of the problem so I can avoid it in other situations (I re-use a lot
of
>functions within an app and alter their behavior based on which form is
>displayed to save RAM).
>
>-----Original Message-----
>From: Scott L. Johnson <[EMAIL PROTECTED]>
>To: Palm Developer Forum <[EMAIL PROTECTED]>
>Date: Friday, April 28, 2000 2:37 AM
>Subject: RE: FrmGetActiveForm Weirdness
>
>
>>
>>Why not change the approach slightly: instead of calling
>FrmGetActiveForm....
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html