PB5.41 LTS; Exeutable doesn't stop

Windows specific forum
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

PB5.41 LTS; Exeutable doesn't stop

Post 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
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

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

Post by HanPBF »

Even this does not work:

Code: Select all

ProcessId = GetCurrentProcessId_()

TerminateProcess_(ProcessId, 0)

Any idea?
User avatar
mhs
Enthusiast
Enthusiast
Posts: 101
Joined: Thu Jul 02, 2015 4:53 pm
Location: Germany
Contact:

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

Post by mhs »

what about a "end" as the last call or instead of the break?
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

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

Post 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...
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Could you try with the 5.42 beta 2 ? Some bugs have been fixed which could affect this.
HanPBF
Enthusiast
Enthusiast
Posts: 564
Joined: Fri Feb 19, 2010 3:42 am

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

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