11
Using Code::Blocks / Re: Debugger - Memory dump
« Last post by Evan on March 15, 2024, 01:43:39 pm »I got this.
When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
Searching around, I came across a set of tools by microsoft, called powertoys, one of which is called file locksmith that seems to do exactly what i want - identify which process(es) keep a certain (or more) files locked.I've had good luck with SysInternals Handles.exe finding locked files.
I downloaded powertoys (~250MB) installed it, made sure I checked the 'run in elevated mode', and test.exe gives no damn results - locksmith cannot identify any process locking that file. However, I try to delete the file and get the error 'cannot delete file cause it's in use by another program'. If i reboot, I can delete it.
I give up for now .. can't think of anything else for the time being.
Please try to create Project via project wizard initially (menu "File - New - Project") and then add file or files to compile into project. Then try to rebuild it.
-------------- Build: Debug in test (compiler: GNU GCC Compiler)---------------
gcc.exe -Wall -g -c C:\tmp\askiseis\test\main.c -o obj\Debug\main.o
gcc.exe -o bin\Debug\test.exe obj\Debug\main.o
C:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file bin\Debug\test.exe: Invalid argument
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
-------------- Build file: "no target" in "no project" (compiler: unknown)---------------
gcc.exe -c C:\Users\thomas\test.c -o C:\Users\thomas\test.o
gcc.exe -o C:\Users\thomas\test.exe C:\Users\thomas\test.o
C:/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\thomas\test.exe: Invalid argument
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Sorry, but I'm using Linux Mint.