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