It is currently Fri Oct 18, 2019 7:17 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Sourcefile ist still locked on HDD after closing TAB in IDE
PostPosted: Tue Apr 16, 2019 1:54 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 489
Location: Germany / one of the fishheads
Windows 7 x64 SP2 / Purebasic 5.62 and 5.70.

- Create a directory on your hard drive and copy a PureBasic sourceode file to this directory
- Start PB and load the sourcode via drag and drop into the IDE
- Compile the source code
- Then close the TAB with the sourcecode.

Now the directory is still locked by the PureBasic IDE. You cannot delete it until the PureBasic IDE is closed.

Regards,
Kurzer

_________________
PB 5.62, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 51y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Tue Apr 16, 2019 6:36 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4361
Location: Germany
I reported this already years ago, but many of the other users was not able to reproduce this.

Maybe it is only on network drives.


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Tue Apr 16, 2019 6:40 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 489
Location: Germany / one of the fishheads
Thanks for confirming this problem.
In my case its not a network directory. It's drive D:\ the second partition of my systems harddrive.

btw.: The problem only occurs, if the file was loaded via drag and drop! If you write a fresh programcode in the IDE and save it or if you load a sourcecode via filemenu from hdd and close the tab, then there is no lock on the file.

_________________
PB 5.62, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 51y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Tue Apr 16, 2019 8:07 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3678
Location: Berlin, Germany
Problem confirmed for PB 5.70 LTS on Windows 10, using a local drive.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Tue Apr 16, 2019 10:04 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1897
kurzer wrote:
Compile the source code

When you say compile, do you mean compile and run (F5 key), or create executable? I read it as compile and run.


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Tue Apr 16, 2019 10:17 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3083
Location: Boston, MA
I also noticed this and thought it standard behavior.
It may be the IDE mechanism that checks for source code file changes still has a file handle?

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Wed Apr 17, 2019 8:52 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 489
Location: Germany / one of the fishheads
Dude wrote:
When you say compile, do you mean compile and run (F5 key), or create executable?

Yes, compile and run is correct. It is not necessary to create an executable.

I haven't tested since when the problem exists, but I can imagine that it has to do with the implementation of the formerly new TabBar gadget. The TabBar gadget is originally from the user Stargate and has been used by Fred in the past to make the PB IDE Multi-TAB capable. A bug may have been built into this implementation.

As I said, the problem only exists if you drag and drop a file into one of the editor TABs.

skywalk wrote:
It may be the IDE mechanism that checks for source code file changes still has a file handle?

I dont think so, because why the IDE have to check for changes, if the sourcecode is actually not loaded in the IDE?

_________________
PB 5.62, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 51y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: Sourcefile ist still locked on HDD after closing TAB in
PostPosted: Wed Apr 17, 2019 9:49 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1897
kurzer wrote:
the problem only exists if you drag and drop a file into one of the editor TABs

Nope, I also get the problem if I load the app normally, without using drag and drop:

https://i.imgur.com/ganeD6f.png

Using Win 10 Pro (64-bit) with PureBasic v5.70 LTS Final (32-bit).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 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