News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Can't remove .exe files - permission denied

Started by allynm, October 19, 2009, 09:17:30 PM

Previous topic - Next topic

allynm

Hello everyone -

I have been linking a dll to a calling program .obj file using:

\masm32\bin\link /SUBSYSTEM:CONSOLE includelibcaller.obj

The first time I issue this command the program links nicely with the DLL and runs.  However,
if I make changes in the caller source and re-assemble using:

\masm32\bin\ml /c /coff includelibcaller.asm

I get a nasty message from the sys that says it can't open file includelibcaller.exe

Moreover, I can't remove the file either with rm command.
If I reboot the system completely, I can rm the file and do the link successfully.  But only once.
It will repeat this as many times as I have patience....which is not many times.

What's amiss?

Thanks,
Makr Allyn

dedndave

it sounds like the file is executing - check the task manager and kill it if necessary
the command lines i use for console programs are...

c:\masm32\bin\ml /Fl /c /coff MyFile.asm
and
c:\masm32\bin\Link /SUBSYSTEM:CONSOLE /OPT:NOREF MyFile.obj

i think i stole them from Hutch or somebody - lol

hutch--

Mark,

It meas your app is not terminating and the normal OS protection is not allowing you to overwrite the running app with the new build. Use task manager with the processes tab and watch the list as you start up your app. If it remains in the list after you closed the app, then your termination code is incorrect. If thats the case show us how you close the app and it may be a simple tweak.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php