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
PB 5.30 IDE file still in use even if it is closed
-
Little John
- Addict

- Posts: 4802
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: PB 5.30 IDE file still in use even if it is closed
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):
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
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.
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.
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PB 5.30 IDE file still in use even if it is closed
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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: PB 5.30 IDE file still in use even if it is closed
I just noticed the same behavior using PB 5.30. No problem with PB 5.23, though.IdeasVacuum wrote:[...] can't delete a just-closed file unless PB is closed.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: PB 5.30 IDE file still in use even if it is closed
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
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
I think this is due to the USB stick's cache settings in Windows, rather than a PureBasic bug.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'