Usinf "catsets.h and carsets.c" crash MFC unicode release version.
Hi,
The debug version works just fines. But the release version crashed windows. I used files "catsets.h and catsets.c" in the software.
The crash point at:
CString::AllocBuffer(CString* const, int)
CString::GetBuffer(CString* const, int)
CFramWnd::GetMessageString(const CFrameWnd* const, unsigned int, CString&)
CFrameWnd::OnSetMessageString(CFrameWnd* const, unsigned int, long)
CWnd::OnWndMsg(Cwnd* const, unsigned int, long, lonf*)
AfxCalWndProc
...
Anyone has similar experience?
[551 byte] By [
li0000] at [2007-11-19 19:31:38]

# 1 Re: Usinf "catsets.h and carsets.c" crash MFC unicode release version.
Define crash. Are you getting any error messages?
What version of VS are you using?
What are "catsets.h and catsets.c"?
JohnCz at 2007-11-10 23:43:35 >

# 2 Re: Usinf "catsets.h and carsets.c" crash MFC unicode release version.
What I mean "crash" is that when I tried to run the release version, the software GUI showed for 1 second (I guessed), then the software crash and a "report error to microsoft" dialog shown.
There is no error message shown. Just "report to Microsoft dialog" shown.
"catsets.h and catsets.c" is the MFC class for the OBDC.
After I removed "catsets.h and catsets.c" from the project (and its function usage), the software UNICODE release version works fine.
There are a lot of usage of "CString" in the "catsets.h and catsets.c"
Thank you very much for your reply.
li0000 at 2007-11-10 23:44:35 >

# 3 Re: Usinf "catsets.h and carsets.c" crash MFC unicode release version.
What I mean "crash" is that when I tried to run the release version, the software GUI showed for 1 second (I guessed), then the software crash and a "report error to microsoft" dialog shown.
There is no error message shown. Just "report to Microsoft dialog" shown. Debug your release version.
Just change the project settings for the release version to include debug information, and to generate debug information in the link options, then recompile the release version. Then you can use the debugger to find what the problem is.
Regards,
Paul McKenzie
# 4 Re: Usinf "catsets.h and carsets.c" crash MFC unicode release version.
Yes, I did debug my release version. I found it stops at:
CString::AllocBuffer(CString* const, int)
CString::GetBuffer(CString* const, int)
CFramWnd::GetMessageString(const CFrameWnd* const, unsigned int, CString&)
CFrameWnd::OnSetMessageString(CFrameWnd* const, unsigned int, long)
CWnd::OnWndMsg(Cwnd* const, unsigned int, long, lonf*)
AfxCalWndProc
...
I can not find any clues that where problem is.
li0000 at 2007-11-10 23:46:41 >
