Forcing Blitz to stop!

Blitz3D Forums/Blitz3D Programming/Forcing Blitz to stop!

IPete2(Posted 2007) [#1]
Hey guys,

How do I stop one programme whilst launching another using b3d?

I have a situation where I want to use a menu system to load different games. I need to be able to load different games from a list from the menu - play them and then go back to the menu.

I want to clear memory each time so I was hoping to simply end the current programme and execfile the next programme.

After a few hops between programmes I find loads and loads of the previous versions still loaded in memory! Still running in the background.

How do I stop one programme by launching another please?

IPete2.


_33(Posted 2007) [#2]
Get the task id and kill it :D

Cheers.


IPete2(Posted 2007) [#3]
_33

Please explain how I do that? And when I should do that?

Thansk

IPete2.


_33(Posted 2007) [#4]
http://www.blitzbasic.com/Community/posts.php?topic=45985#513266

You need to explain more the flow of your menu, I can't help you more than this ATM. Killing running programs (tasks) shouldn't be too puzzling. Implementing a function to kill tasks also. To get the task ID thoe, will require a little tinkering.


IPete2(Posted 2007) [#5]
Thanks!

Really big thanks!

IPete2.