Page 1 of 1
Locked folder of code by PB
Posted: Tue Jul 18, 2023 5:33 pm
by Kwai chang caine
Hello at all
I don't know if for you it's the same thing, but since several years i have the same strange behavior :
When i run a code in the PB IDE, the "PureBasic_Compilation0.exe" appears in my folder code beside my PB code (Normal

)
And when i close it the "PureBasic_Compilation0.exe" disappears (Normal too

)
But now...it's impossible to rename the folder code

The only one way, is close and reopen PB IDE and after i can rename the folder fo code
Someone have the same behavior or know how ?
Have a good day
Re: Locked folder of code by PB
Posted: Tue Jul 18, 2023 9:26 pm
by infratec
Yes, I can confirm this.
I already reported this, but without result.
Re: Locked folder of code by PB
Posted: Wed Jul 19, 2023 12:51 pm
by spikey
Yes, I can confirm too. Closing all open files doesn't solve the problem so I'm guessing that there is a separate handle to the folder itself somewhere which doesn't get closed until the IDE is closed.
But having said that - I can't find one...
Oh yes I can...
When you double click a file in explorer and the IDE isn't already open, a handle is opened to the containing folder which isn't closed when the file is closed. It doesn't happen when a file is opened via the open dialog, recent files or if the IDE is already open. Does this fit with your observed behaviours?
Re: Locked folder of code by PB
Posted: Wed Jul 19, 2023 3:01 pm
by fryquez
Saw this, too. Pbcompiler.exe has an handle to project folder.
Using Compiler --> Restart Compiler solves it here.
Re: Locked folder of code by PB
Posted: Wed Jul 19, 2023 5:50 pm
by Kwai chang caine
Thanks at you three for your advice, I feel less alone now
It's true it's annoying like behavior
But if INFRATEC have already signaled the problem, i suppose there are nothing to do
Sipkey wrote:When you double click a file in explorer and the IDE isn't already open, a handle is opened to the containing folder which isn't closed when the file is closed. It doesn't happen when a file is opened via the open dialog, recent files or if the IDE is already open. Does this fit with your observed behaviours?
I can't say, because i always open PB source with drag/drop or in the recent file in the IDE menu
Fryquez wrote:Using Compiler --> Restart Compiler solves it here.
Thanks for the tips
It's not the "america"..but it's already a half solution i don't know for fix the problem
