I tried recreating the project from scratch and copying my old fields onto
a new form in constructor.  I got the same results. So I recreated the
project again and redrew the fields in constructor a few at a time and it
worked.  Apparently it's something about what I did in Constructor or maybe
a bug in Constructor.  Thanks for all your help.

regards,

Dave Mottorn

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Avilla,
Dane
Sent: Wednesday, December 12, 2001 12:05 PM
To: Palm Developer Forum
Subject: RE: Fussy Routine


>
>       I just tried your suggestion (MemHandleResize) and it
> didn't work.  Thanks
> for the speedy reply.
>
> regards,
>
> Dave Mottorn
>
>

Unfortunately, I think you've got something else going on . . .

I took your UpdateFieldTm() function and pasted it into a new CW project.
Then, in MainFormInit I pasted your

                        CurrentSeconds = TimGetSeconds();
                        TimSecondsToDateTime(CurrentSeconds, &CurrentTime);
                        UpdateFieldTm((int) CurrentTime.month,
MainTodaymmField);
                        UpdateFieldTm((int) CurrentTime.day,
MainTodayddField);
                        UpdateFieldTm((int) CurrentTime.year,
MainTodayyyField);

test code (with appropriate variable definitions :).  I added the three
fields to the main form and also a button.  When the button is pressed,
MainFormInit is called in the ctlSelectEvent handler.

I can press the button as many times as I want and don't get any crashes,
and from what I can see, there aren't any memory leaks.

Try to isolate this code outside of your app.  I think your app might be
trashing memory between the first time you call UpdateFieldTm on these
fields, and the second time you call UpdateFieldTm when refreshing the
fields.

Cheers,

-DGA

--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to