Little exe problem

BlitzMax Forums/BlitzMax Beginners Area/Little exe problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am executing (or at least trying to) a B3D exe from my BMax app. It works fine in debug mode, but when I try to execute the B3D exe from the BMax executable, BMax exe freezes to the extent I have to power down the computer (Ctrl+alt+delete does not enable task manager). My code is:-



exec$=(AppDir+"/Results_Compare.exe")
'DebugStop

'below works if debugstop left in....
Local proc:TProcess=TProcess.Create (exec$,0)'(AppDir+"/Results_Compare",0)
DebugStop		'may not be necessary if take debug off.....
'---------------------------------------


I have a couple of questions:

How do I gracefully execute the B3D app, then gracefully shutdown the BMax App?

What code can I implement that would allow Ctrl+alt+delete to start the Task Manager if the BMax exe freezes ?

Cheers...