It is currently Fri Jun 22, 2018 12:56 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: IDE crashes and removes itself from programfiles\purebasic
PostPosted: Wed Feb 07, 2018 12:36 pm 
Offline
New User
New User

Joined: Wed Jan 31, 2018 4:03 pm
Posts: 7
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


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE crashes and removes itself from programfiles\purebas
PostPosted: Wed Feb 07, 2018 12:56 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1423
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE crashes and removes itself from programfiles\purebas
PostPosted: Wed Feb 07, 2018 1:14 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 979
That sounds like a very agressive AV !

In your case I think the AV deletes the exe quiet... without notification.

_________________
PureBasic 5.46 LTS / 5.62 (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE crashes and removes itself from programfiles\purebas
PostPosted: Wed Feb 07, 2018 1:32 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1553
Yeah, absolutely sounds like an AntiVirus to me... kill the program, and move the exe (probably to some "quarantine" somewhere).


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE crashes and removes itself from programfiles\purebas
PostPosted: Wed Feb 07, 2018 2:34 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1423
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. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE crashes and removes itself from programfiles\purebas
PostPosted: Fri Jun 01, 2018 9:35 am 
Offline
New User
New User

Joined: Wed Jan 31, 2018 4:03 pm
Posts: 7
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye