Page 1 of 1

PB programms running hours after PB was closed

Posted: Fri Oct 14, 2016 11:12 pm
by John R. Sowden
For several hours, my Ubuntu 14.04 box has been running slow. I ran "task manager" to try to find the mem hog, etc. I found several copies of cipher running, taking 3.5-4 MB each, flashing on/off etc. in the task manager. I was looking a different PB files this morning, but that was hours ago. Why are they still running and why are they so big?

Thoughts?
John

Re: PB programms running hours after PB was closed

Posted: Sat Oct 15, 2016 1:41 am
by Keya
guessing its hung in a loop or something. you havent given us much to diagnose with lol

Re: PB programms running hours after PB was closed

Posted: Mon Oct 17, 2016 11:30 am
by Crusiatus Black
Keya wrote:guessing its hung in a loop or something. you havent given us much to diagnose with lol
I have had this problem on Linux Mint 17 where a console application in PureBasic keeps running after CloseConsole() and End were invoked. It only happens when the PureBasic IDE starts it up in a GUI terminal. When I run the same application on a TTY terminal (Debian w/o a desktop manager) it stops the program when it should properly.

After a while I figured out that KillThread on a thread required a delay of one second after it to properly stop the thread for some reason, then the program properly stops.