Ok, I am making a simple marquee program for the palm pilot.

Everything works Perfectly except for when I want to exit. The effect I want is when 
the user presses the stlus against the screen, the app should exit and enter the app 
launch program. Instead it gives me a memory error. Here is my code.

 int num=0;
     Int16          penX, penY;
    Boolean    penDown;
           
    while(penDown==false){
        num=num+1;
    if(num>10)
        {
    scrollx=scrollx-1;
    num=0;
            }
WinDrawChars("Brandon Rules!",14,scrollx,70);
    if (scrollx<-100)
    {
    WinEraseWindow();
    scrollx=177;
    }
    }
EvtGetPen( &penX, &penY, &penDown);
    if(penDown==true)
    SysAppLauncherDialog();

I know the main reason is probably because I have it in a While loop. Can anyone help 
me? Thanks!

-- 
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