Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Old output keeps displaying, till process is ended in task manager
Old output keeps displaying, till process is ended in task manager [message #1706335] Wed, 26 August 2015 00:49 Go to next message
Eclipse UserFriend
Hi there,

I am running Eclipse Version: Mars Release (4.5.0),
Build id: 20150621-1200 for C programming, on Windows 7.
Compiler: mingw32

Every time I make a change in my program, save it, re-build it and run it, the output is still the same.

The only way to run with the changes, is to end the C/C++ Application executable process (Debug/filename.exe) in task manager, and then rebuild and re-run the program.

Any way to make the process restart or make the program take the changes upon re-building?

Also I get the following error:

cannot open output file Deitel.exe: Permission denied
collect2.exe: error: ld returned 1 exit status


Eclipse is running with admin rights.

I have attached the screenshots, before and after restarting the process.

Any suggestions would be greatly appreciated.

Regards,

Jim


index.php/fa/23001/0/

index.php/fa/23002/0/
  • Attachment: Old.PNG
    (Size: 59.07KB, Downloaded 1609 times)
  • Attachment: New.PNG
    (Size: 56.81KB, Downloaded 1703 times)
Re: Old output keeps displaying, till process is ended in task manager [message #1706345 is a reply to message #1706335] Wed, 26 August 2015 03:10 Go to previous messageGo to next message
Eclipse UserFriend
Actually, this is a Windows thing, rather than an Eclipse thing.

Windows does not allow changing an executable (.exe) file as long as the program is running, to prevent it running amok. You have to stop the run before the linker can make a new version. It is up to the program, if it will stop voluntarily or if it has to be killed by operating system utilities.

Off-topic: On Unix-ish systems, you can make a new version of an executable even when the old one is running. Even here, the old copy has to be stopped and the new started before the properties of the new program are seen.
Re: Old output keeps displaying, till process is ended in task manager [message #1706909 is a reply to message #1706345] Mon, 31 August 2015 14:06 Go to previous message
Eclipse UserFriend
I see. Thanks a lot for the info. I will just have the task manager handy, and end the process before running the program again.
Previous Topic:how to debug with eclipse
Next Topic:Parsing inactive code in CDT
Goto Forum:
  


Current Time: Tue Jun 24 04:19:26 EDT 2025

Powered by FUDForum. Page generated in 0.05803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top