User forums > Help

Access Violation on close

<< < (2/2)

AkiraDev:
I think the problem with cleaning is that the program appears to be using '/' instead of '\' in the filename paths. It seems to be a simple wxFileName formatting issue.
Also, newer versions of MinGW no longer have the "rm" command. If you have MSys installed and in your PATH, however, that shouldn't be a problem.

I also got that "crash-on-close" issue. There's a memory leak lurking around somewhere... I would try to find it myself -- not fair that one person does all the work -- but, alas, I cannot compile Code::Blocks. Even with wxWidgets 2.4.2, MinGW always complains about wxSingleChoiceDialog being undefined...

AkiraDev:
I think the problem with cleaning is that the program appears to be using '/' instead of '\' in the filename paths. It seems to be a simple wxFileName formatting issue.
Also, newer versions of MinGW no longer have the "rm" command. If you have MSys installed and in your PATH, however, that shouldn't be a problem.

I also got that "crash-on-close" issue. There's a memory leak lurking around somewhere... I would try to find it myself -- not fair that one person does all the work -- but, alas, I cannot compile Code::Blocks. Even with wxWidgets 2.4.2, MinGW always complains about wxSingleChoiceDialog being undefined...

mandrav:

--- Quote ---rm -f hello.exe .objs/main.o  
process_begin: CreateProcess((null), rm -f hello.exe .objs/main.o, ...) failed.
--- End quote ---

It seems that compilation fails now because you don't have the "rm" command.
"rm" is part of GNU fileutils (which you can get here for win32).
If you don't want to download it, go to "Settings/Configure plugins/Compiler", switch to the tab "Makefile variables" and change the value of RM from "rm -f" to "del /f".


--- Quote ---I think the problem with cleaning is that the program appears to be using '/' instead of '\' in the filename paths. It seems to be a simple wxFileName formatting issue.
--- End quote ---

I have put great effort to avoid such problems. Other programs want forward slashes, others backward slashes, others work with both kinds and others need quotes around the filenames in some of their options but not all. It's a nightmare, but I think that there is no such problem currently in Code::Blocks. I have tested all different kind of combinations, for all supported compilers, and it works great (except the BCC's ilink32 command - which I fixed in CVS).

About the crash on exit, it has to do with the managers de-initialization. I 'm really close to fixing it...
Yiannis,

AkiraDev:
Thank you very much for taking the time to explain the problems, and doing so so quickly. :) I'm about to download the GNU utils, that should also definitely solve half of my problems.

bszente:
Thanks for your quick help. I registered myself in this forum.

I didn't realize that I should also install MSYS.
I installed the MinGW-3.1.0-1.exe and the MSYS-1.0.10.exe package. I also set the PATH to the bin directories of these two. When I pressed the Rebuild button, the source compiled, however I got this strange output:

--- Quote ---Project   : Hello
Compiler  : MinGW Compiler Suite
Directory : C:\Temp\
rm -f hello.exe .objs/main.o  
/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-g++.exe     -c main.cpp -o .objs/main.o
mingw32-make.exe: [.objs/main.o] Error 258 (ignored)
/bin/sh: -c: line 2: syntax error: unexpected end of file
mingw32-g++.exe  -o hello.exe   .objs/main.o    -lstdc++ -lgcc -lgdi32 -lcomdlg32 -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid -mwindows
mingw32-make.exe: [hello.exe] Error 258 (ignored)
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End quote ---

What are those syntax errors, and the error 258?

Regards,
Balint

Navigation

[0] Message Index

[*] Previous page

Go to full version