Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 10-12-2010, 08:01 PM
Mike Halliday's Avatar
Mike Halliday Mike Halliday is offline
Senior Member
 
Join Date: Sep 2007
Location: Warrington, United Kingdom
Posts: 821
Send a message via Skype™ to Mike Halliday
Default App does not exit cleanly!

I have been wrangling with this for a while, and been too busy to post.

Using PPL2 I have written a mobile app, and its all finished apart from one thing;

When I click on the quit/exit icon, the app closes, but ppl still seems to be running in the background and my phone slows down to a crawl. The only way out is to soft reset.

What is the best way to stop the app?

I am currently using Halt, but I guess that that does not work very well.

Here is my exit code;

#code {D:\APP.gam#SPRITE112}
func SPRITE112_OnLeftButtonDown(hWnd$, Msg$, wParam$, lParam$)
// exit
// close down FMODce
FSOUND_Stream_Close(Sounds$[0]);

fsound_close;

// remove all the files we extracted from the package
deletefile(AppPath$ + {logo.jpg});
Halt;

return (true);
end;

Do i use the send_msg command like in 1.53? or is there a better way to make sure the apps exit cleanly?

Cheers guys
__________________
Past editor of 'Voice of the PPL' the BI-Monthly Disk Magazine for the PPL by the PeoPLe!

Still developing products using PPL! - Although not as many as I used to!


If you enjoy my PPL applications and want to see many more, or I have helped you in any way; click here to buy me a beer;
Reply With Quote
  #2  
Old 10-13-2010, 02:33 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

Windows Mobile does not close the application by default. You will need to send a message like in PPL 1.x to close it totally.
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #3  
Old 10-14-2010, 08:16 PM
Mike Halliday's Avatar
Mike Halliday Mike Halliday is offline
Senior Member
 
Join Date: Sep 2007
Location: Warrington, United Kingdom
Posts: 821
Send a message via Skype™ to Mike Halliday
Default

Quote:
Originally Posted by kornalius View Post
Windows Mobile does not close the application by default. You will need to send a message like in PPL 1.x to close it totally.
Thanks. Will give it a go.
__________________
Past editor of 'Voice of the PPL' the BI-Monthly Disk Magazine for the PPL by the PeoPLe!

Still developing products using PPL! - Although not as many as I used to!


If you enjoy my PPL applications and want to see many more, or I have helped you in any way; click here to buy me a beer;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd