Page 1 of 1

PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 9:26 am
by HanPBF
Hello,

I have built a program with a window and a SetWindowCallback.

When The window is closed, the following code "breaks" correctly:

Code: Select all

if *Sheet\PB
		repeat
			if not IsWindow(*Sheet\PB) 							
				break
			endif
			
			Protected	NrEvent = WaitWindowEvent()				
		forever		
	endif	
... and jumps out of the procedure.

But then I can go withthe debugger (F8) to the end of the program and it won't stop.

I did set SetWindowCallback to 0 at window close.

Do I need to cleanup more then that; any BindGadget?
Can I force to stop the program (end does even not work)?
The purebasic_compilation0.exe keeps staying in folder; next compile builds another one.

The big problem is that even the compiled exe (without using IDEs debugger) does not stop as I can see in the task manager!

Any idea how I can stop maybe the process?

Really apreciate any tip!
Thanks

Re: PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 10:11 am
by HanPBF
Even this does not work:

Code: Select all

ProcessId = GetCurrentProcessId_()

TerminateProcess_(ProcessId, 0)

Any idea?

Re: PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 10:24 am
by mhs
what about a "end" as the last call or instead of the break?

Re: PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 10:48 am
by HanPBF
Hello mhs,

end does not work; IDE-debugger keeps running; exe in task manager still alive.

Both while debugging and with running compiled exe...

Re: PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 11:08 am
by Fred
Could you try with the 5.42 beta 2 ? Some bugs have been fixed which could affect this.

Re: PB5.41 LTS; Exeutable doesn't stop

Posted: Mon Feb 15, 2016 3:41 pm
by HanPBF
Hello Fred,

thanks for the info.

At the moment, after adding something, program does stop...
So yes, it may be a problem with some changes in the last early releases in combination with my program.
If that does not work in the future I will do a workaround with a shell call to kill the process.

I will install new beta these days.

Thanks a lot!
Regards