Page 1 of 1
PB 5.30 IDE file still in use even if it is closed
Posted: Thu Sep 04, 2014 7:23 am
by infratec
Hi,
don't know if it is already a 'known' bug:
If I open a *.pb file from an USB stick and close it again, I'm not able to remove the USB stick 'save'.
Message: 'The device is in use, close all ...'
If I close PB, than I can remove the stick.
It looks that the file stays 'open'.
Bernd
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Thu Sep 04, 2014 7:57 pm
by Little John
Hi,
depending
on the way how I open a .pb file on a USB flash drive, I get different results here (Windows 7 x64, using PB 5.31 beta 1 x64):
- When I open a .pb file by double-clicking at it in the Windows Explorer,
and then close the file but leave the IDE itself open, then I encounter the same problem as you described.
- However, when I first launch the IDE, and open a .pb file from inside the IDE via "File" > "Open",
and then close the file but leave the IDE itself open, then there is no problem, and I can savely remove the USB flash drive.
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Thu Sep 04, 2014 10:00 pm
by infratec
Hm...
I open the file via double click inside totalcommander.
But after I close the file in the IDE I change the directory and drive inside totalcommander, so that is not the
problem.
I do always look on USB drives with totalcommander and when I change the drive, I can remove the stick 'save'.
So it has something todo with the IDE.
Not an urgent bug, but I have always to remember that I have to close the IDE in such a case.
Btw. I used PB 5.30 x86 on Win XP x86 and Win 7 x64 to reproduce this behaviour.
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Thu Sep 04, 2014 10:25 pm
by IdeasVacuum
That actually happens on WinXP on any drive type - for example, can't delete a just-closed file unless PB is closed. It's not something I encounter often (I code with UltraEdit) so I have never bothered to investigate why it happens.
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Mon Sep 08, 2014 10:24 am
by c4s
IdeasVacuum wrote:[...] can't delete a just-closed file unless PB is closed.
I just noticed the same behavior using PB 5.30. No problem with PB 5.23, though.
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Wed Mar 09, 2016 10:14 am
by infratec
As addition:
it happens not only on an USB device, it happens also on network drives.
I closed all programs inside the IDE,
then I tried to delete the complete directory where the source files where located (after zipping the directory to a file)
Result:
All files (includind subdirectories) were deleted, but I was not able to delete the main directory.
I had to close the IDE, than it works.
Maybe it has something todo with 'generate temporary executable in source folder'.
I have this option active.
Now with PB 5.42 x86 on windows 7 x64
Bernd
Re: PB 5.30 IDE file still in use even if it is closed
Posted: Wed Mar 09, 2016 11:38 am
by Dude
infratec wrote:If I open a *.pb file from an USB stick and close it again, I'm not able to remove the USB stick 'save'
I think this is due to the USB stick's cache settings in Windows, rather than a PureBasic bug.