View Issue Details

IDProjectCategoryView StatusLast Update
0000694Ecere SDKidepublic2012-03-29 07:52
ReporterD_Bane Assigned To 
PrioritynormalSeverityblockReproducibilitysometimes
Status closedResolutionno change required 
Product Version0.44 Ryoan-ji 
Summary0000694: Run app in IDE creates exe and does not exit from it
DescriptionWhen testing samples a lot of times I would need to close the IDE then open again, clear the folder with linked files (obj folder) and the exe would be active (it is shown in TaskManager)

also this error is shown in IDE Output window

Linking...
   Linker Error: cannot open output file obj/debug.win32/anySample.exe: Permission denied
   collect2: ld returned 1 exit status

Additional InformationAlso, sometimes even if the IDE project is closed and another one opened the exe from the first one is still active.
TagsNo tags attached.

Relationships

related to 0000696 closedredj Hitting Project/Clean while debugging app puts the debugger in an unusable state 

Activities

D_Bane

2012-03-21 18:51

reporter   ~0000528

I found out that even if the exe is not shown in the task manager the file is still not possible to delete, even with administrative privileges. I even gave this account full control just to see if it was something else.

If you click on Clear Project it will delete everything accept the project.exe and it will stay in the folder for exactly 1 minute and then disappear (between 56 seconds to 1 minute to be precise).

(this is with the downloaded setup, will update it and try if it happens again)

jerome

2012-03-22 06:25

administrator   ~0000529

Hi D.Bane,

Which app/project exactly were you running?

Also, were you running with Start Debug (F5) or Run (Ctrl-F5) ?

When running an application with Ctrl-F5 (the arrow pointing right in the toolbar right now), the IDE does not keep a handle to the child process and has no way to terminate it. Building will fail (as in the Linking error message you pasted) if you do not close it before trying to build again.

I suggest you always run with the Start/Debug (F5) when debugging your applications, the IDE will then control the child process through GDB, and can terminate its execution (and will automatically do so when rebuilding).

Now, what exactly was the application you were running? Was it a GUI appliation? Did it have any windows up? Did you override the application main loop? (With the default GuiApplication mainloop, Ecere applications will exit after all windows have been destroyed.)
Was there any way to terminate it? (e.g. A close button, or handling Escape to quit)

You should also still be able to bring up your task manager, and you will see the application running under Processes. There you can select it and click the "End process button".

Regards,

Jerome

D_Bane

2012-03-22 12:15

reporter   ~0000530

Hi, it does not matter what is the project (it happened on samples - for example Samples/3D/Animate3DS/, and I always build with F5 it is something I got to much used to so I only clicked the buttons first time I opened the IDE (I do clean the folder with the toolbar button).

When I closed the project and opened another project in the same IDE it was shown in the TaskManger (this project might have been created with the toolbar button as it only happened once). Usually I need to wait for about a minute and the file gets erased it does not matter if I try removing t with clean project or explorer's delete.

With the last version before the "0.44 Ryoan-ji" there was no something like this. I tried upgrading to the last commit to see if the problem was still there, but had make problems, I will write on forums about it.

Best Regards,
D.Bane

jerome

2012-03-22 16:30

administrator   ~0000531

Do you click the Arrow (Run) or the Play button (Start) ?

Nothing changed, so I think you're just clicking the wrong button.

D_Bane

2012-03-22 18:01

reporter   ~0000532

I always build with F5 and I get that error. If no one else gets the same error it might be on my system, and I am looking to update the ecere first and will let you know if it happens again.

I am not much of a clicker-person :) like the keyboard better.

jerome

2012-03-22 18:07

administrator   ~0000533

Oh OK. you mentionned the toolbar buttons so I was wondering.

If you hit F5 then the IDE should be in control (And Shift-F5 should stop the running application)

Also in the Output panel, Debug tab, you should see


Starting debug mode

and not:

The program [your exe here] has exited.
Debugging stopped

D_Bane

2012-03-23 15:12

reporter   ~0000536

Hi Jerome.

I think that I have found what might be causing this problem...If I were to build the project and go to its folder and erase all built files, they would get removed immediately. If I go to clean project (either toolbar button or from the project menu) it will remove all but exe which gets locked for about a minute or so, then it gets removed...

I had tried to do this in many different ways, I even gave permissions and full control for everything to the user I am logged in, but it is all the same (and it worked in this system configuration before). Has there been any updates to the way how the files are removed, maybe that could be a problem, or is there any place (related to it) where it needs to wait for a minute then do something?

In short:
build->Browse Object Folder->delete obj dir (works)
build->Clean Project-> exe is still there (for a minute)

Also, above, "it does not matter what is the project" I realize that it might sound as rude, just to tell you that I meant it as "It does not matter as all samples that I had opened were like that, it is not something related to one project", or something similar :)

jerome

2012-03-23 17:13

administrator   ~0000537

Hi D.Bane,

I tried opening a project, hitting F5: it gets built, the app runs...
(I tried Animate3DS)
Then I exit the app (hit escape), and I click the Clean button in the toolbar.
All files go away, including the exe.

You do exit the app, right, before doing clean?
I have found another bug (0000696) when you do not do so and click Clean.

Could you have an anti-virus or other program installed which might be holding on or delaying the delete? Sometimes Windows itself might be doing this. Have you tried after a clean reboot?

Regards,

Jerome

D_Bane

2012-03-23 17:40

reporter   ~0000538

Hi Jerome,

Thank you for your time, I thought that it is Ecere, as it was working great with last versions, but it is Win 7.

Here is the link to the solution I hope that all of others are using Linux so that they do not need it :) :
http://superuser.com/questions/234569/windows-7-delayed-file-delete

People are able to use explorer to delete files, but even MS VS will not be able to delete it as it should..they say that you would need to wait 1-2 minutes to have it deleted...

jerome

2012-03-23 17:49

administrator   ~0000539

D.Bane,

Thanks for the info! I hope it helps other users who run into this issue :)

I remember this happened to me before as well.
Maybe I've disabled those compatibility features :)

I'll close off this issue.

Regards,

Jerome

jerome

2012-03-23 17:50

administrator   ~0000540

"it is Win 7.

Here is the link to the solution I hope that all of others are using Linux so that they do not need it :) :
http://superuser.com/questions/234569/windows-7-delayed-file-delete [^]"

Issue History

Date Modified Username Field Change
2012-03-21 16:36 D_Bane New Issue
2012-03-21 18:51 D_Bane Note Added: 0000528
2012-03-22 06:25 jerome Note Added: 0000529
2012-03-22 06:25 jerome Status new => feedback
2012-03-22 12:15 D_Bane Note Added: 0000530
2012-03-22 16:30 jerome Note Added: 0000531
2012-03-22 18:01 D_Bane Note Added: 0000532
2012-03-22 18:07 jerome Note Added: 0000533
2012-03-23 15:12 D_Bane Note Added: 0000536
2012-03-23 17:13 jerome Note Added: 0000537
2012-03-23 17:13 jerome Relationship added related to 0000696
2012-03-23 17:40 D_Bane Note Added: 0000538
2012-03-23 17:49 jerome Note Added: 0000539
2012-03-23 17:50 jerome Status feedback => closed
2012-03-23 17:50 jerome Note Added: 0000540
2012-03-23 17:50 jerome Resolution open => no change required
2012-03-29 07:52 redj Category => ide
2012-03-29 07:52 redj Project @3@ => Ecere SDK