I really have no idea why that would happen.  If it is a normal
(non-repeating) button, the ctlSelect is not sent until the button is
*released*, so a crash before that happens obviously involves some other
part of your code.

Have you tried using a debugger?

Alan

"Johnson Z" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> I have two buttons in the UI, one for start and one for stop.
> for the start button, if I press it for too long time(but within 1
> sec), the application will hang. The code for handling the button is
> shown below.
>
> switch (eventP->data.ctlSelect.controlID){
> case MainStartGraphicButton:
> if(fileState != sToPlay && gfileState != sPlaying)
> if(MainFormGetFullPathName(fileName))
> fileState = sToPlay;
> handled = true;
> break;
>
> ...
>
> However, for the stop button, even I press it for a few secs, the app
> is still ok.
>
> case MainStopGraphicButton:
> if(fileState != sToStop)
> fileState = sToStop;
> handled = true;
> break;
>
> why is it so? Can anyone debug it for me.
> Thanks
>
>
>
> _________________________________________________________________
> Take a break! Find destinations on MSN Travel.
http://www.msn.com.sg/travel/
>
>
>



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

Reply via email to