PB 5.30 IDE file still in use even if it is closed

Post bugs related to the IDE here
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

PB 5.30 IDE file still in use even if it is closed

Post 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
Little John
Addict
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

Post 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.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.30 IDE file still in use even if it is closed

Post 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.
IdeasVacuum
Always Here
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

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: PB 5.30 IDE file still in use even if it is closed

Post 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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.30 IDE file still in use even if it is closed

Post 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
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: PB 5.30 IDE file still in use even if it is closed

Post 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.
Post Reply