#VS cant run on Debug but can on Release?

42 messages · Page 1 of 1 (latest)

strong fern
#

I get this error:

worthy wagonBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@strong fern

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

strong fern
#

LNK1104 cannot open file 'C:\Users\alber\Documents\Code\C++\VS\OpenGL\x64\Debug\OpenGL.exe' OpenGL C:\Users\alber\Documents\Code\C++\VS\OpenGL\LINK 1

#

when i run it in debug mode it says:

#

on release it just opens normaly:

#

now i changed something in the code and i cant compile in release too

#

it doesnt work for booth ways

sour grove
#

Looks like your executables are still running

strong fern
#

i looked in my task manager and there was none of my exe

sour grove
#

close visual studio

strong fern
#

done

sour grove
#

reopen and try running again

#

they're definitely open

strong fern
#

still the same after reopening it

sour grove
#

can you find that file and delete it?

strong fern
#

after deleting it:

sour grove
#

what file did you delete...

#

did you delete a project file, or the exe?

strong fern
#

openGL.vcxproj

#

ohh xd

sour grove
#

restore that file

strong fern
#

you ment the exe

sour grove
#

yup

strong fern
#

lol

#

sry

#

now it works

#

it was because of one of my asus applications

#

...

sour grove
#

which? 👀

strong fern
#

uhm

sour grove
#

but basically, it looks like something was holding on to the process handle and preventing writes to the file

#

(aka something was keeping it open)

#

Task Manager can kinda suck for finding these stray processes. I tend to reach for Resource Monitor. Not quite as user friendly, but more powerful imo

strong fern
#

yea xd

#

i did just what you said: "Delete the exe". And the there was something strange like "It is still running as Axx.." and i opend taskmanager and searched for it

#

closed it and then i can del it

#

recreate it and done ^^

#

thanks

#

!solve