OS: Win7 prof. SP1 64 bit on a Core I7 with 32gByte of RAM
PB Ver. 5.62 64 bit
I have a *VERY* strange behaviour here and write it down here just to see if anyone else has seen something like this before:
I have a program that uses 99% PB functions and some windows API calls to do HTTPS get requests.
Sometimes ( but not always ) if the part with the InternetOpenUrl_ and InternetReadFile_ API calls is run, the IDE crashes without any error message.
So far so "good".
What makes it really special is the fact that after that crash, the "PureBasic.exe" from c:\Programfiles\Purebasic is vanished. It simply does no longer exist.
But if I try to overwrite it, i cannot because windows tells me that something is locking it.
Also, my code uses OpenPreference() and WritePriferenceString() to store results of the HTTPS GET requests. If the IDE crashes as written above, the created preference file is also vanished after the crash. Even if the preferences file did already exist before the code was run, it is removed by this crash.
So it seems the crash runs some cleanup code that removes all objects that have a handle within the ide/debugger or such. Including the IDE executable itself. But luckily none of the .pb source code files. ( I have backups and GIT, so no big deal.. )
After rebooting the PC i then can re-install PB. I can't without reboot as the installer complains that it is not able to write the PB files.
Any idea ?
I will:
- Narrow down if it is related to using the debugger or not and/or compile options...
- Try to make an as-short-as-possible sample code showing the behaviour
- Check if the virus scanner is somehow involved...
- Check with an older PB version.
But all the checking is very time consuming as whenever it happens, I need to reboot and then re-install PB.
Thank you,
Wolfgang
IDE crashes and removes itself from programfiles\purebasic
Re: IDE crashes and removes itself from programfiles\purebas
I don't know what the problem is, by try just logging off and then back on, instead of rebooting. May save you a bit of time.
Re: IDE crashes and removes itself from programfiles\purebas
That sounds like a very agressive AV !
In your case I think the AV deletes the exe quiet... without notification.
In your case I think the AV deletes the exe quiet... without notification.
Re: IDE crashes and removes itself from programfiles\purebas
Yeah, absolutely sounds like an AntiVirus to me... kill the program, and move the exe (probably to some "quarantine" somewhere).
Re: IDE crashes and removes itself from programfiles\purebas
I agree with the above: turn off your AV and see if it still happens, or try inside a clean virtual machine with no AV installed. Or even boot in Safe Mode and see. Lots of tests.
Re: IDE crashes and removes itself from programfiles\purebas
Dear Forum, sorry for the long delay.
Indeed, it was the stupid AV software doing this.
I start to lean towards the opinion of several professionals, that the best usage of AV software is to not use it at all.
So, thanks again for the replies and sorry for not responding quickly.
Indeed, it was the stupid AV software doing this.
I start to lean towards the opinion of several professionals, that the best usage of AV software is to not use it at all.
So, thanks again for the replies and sorry for not responding quickly.