Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [GDI+] alpha determined by gray value Pin
Mark Salsbery8-Jul-08 6:55
Mark Salsbery8-Jul-08 6:55 
QuestionCHAT PROGRAMME Pin
bodhi20167-Jul-08 7:37
bodhi20167-Jul-08 7:37 
AnswerRe: CHAT PROGRAMME Pin
Mark Salsbery7-Jul-08 7:46
Mark Salsbery7-Jul-08 7:46 
QuestionGet Mouse Click position Pin
Like2Byte7-Jul-08 7:29
Like2Byte7-Jul-08 7:29 
AnswerRe: Get Mouse Click position Pin
Mark Salsbery7-Jul-08 7:48
Mark Salsbery7-Jul-08 7:48 
GeneralRe: Get Mouse Click position Pin
Like2Byte7-Jul-08 10:01
Like2Byte7-Jul-08 10:01 
GeneralRe: Get Mouse Click position PinPopular
James R. Twine7-Jul-08 10:57
James R. Twine7-Jul-08 10:57 
QuestionExecutable crashes with Debug version and works fine with Release version Pin
lokare_atul7-Jul-08 4:37
lokare_atul7-Jul-08 4:37 
Hi,

I am facing crash problem with debug version of executable. I have ported C++ code from VS6.0 to VS.Net2003. In VS6.0 both Debug and Release version executable works fine. But in VS.Net2003 it is crashing with debug version where as works fine with release version. It is Multithreaded C++ Code.

Executable crashed with fgetc() function. The particular call stack looks like

msvcr71d.dll!_heap_alloc_base(unsigned int size=4132) Line 211 C
msvcr71d.dll!_heap_alloc_dbg(unsigned int nSize=4096, int nBlockUse=2, const char *
szFileName=0x1026a03c, int nLine=58) Line 397 + 0x9 C
msvcr71d.dll!_nh_malloc_dbg(unsigned int nSize=4096, int nhFlag=0, int nBlockUse=2, const char * szFileName=0x1026a03c, int nLine=58) Line 260 + 0x15 C
msvcr71d.dll!_malloc_dbg(unsigned int nSize=4096, int nBlockUse=2, const char *
szFileName=0x1026a03c, int nLine=58) Line 176 + 0x1b C
msvcr71d.dll!_getbuf(_iobuf * str=0x1027c8b8) Line 58 + 0x13 C
msvcr71d.dll!_filbuf(_iobuf * str=0x1027c8b8) Line 120 + 0x9 C
msvcr71d.dll!fgetc(_iobuf * stream=0x1027c8b8) Line 48 + 0x41 C

It got crashed in HeapAlloc() function with exception "Unhandled exception at 0x7c9114b6 in TestCrash.exe: 0xC0000005: Access violation writing location 0x003aba9d".

Can anyone help please?
AnswerRe: Executable crashes with Debug version and works fine with Release version Pin
Matthew Faithfull7-Jul-08 5:35
Matthew Faithfull7-Jul-08 5:35 
QuestionService Programming - How to tell if the current process is running as a Windows Service.. Pin
Mike Doner7-Jul-08 3:38
Mike Doner7-Jul-08 3:38 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Iain Clarke, Warrior Programmer7-Jul-08 3:46
Iain Clarke, Warrior Programmer7-Jul-08 3:46 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
KarstenK7-Jul-08 3:48
mveKarstenK7-Jul-08 3:48 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Nibu babu thomas7-Jul-08 17:41
Nibu babu thomas7-Jul-08 17:41 
QuestionArray of pointers to functions Pin
softwaremonkey7-Jul-08 3:37
softwaremonkey7-Jul-08 3:37 
AnswerRe: Array of pointers to functions Pin
Iain Clarke, Warrior Programmer7-Jul-08 4:04
Iain Clarke, Warrior Programmer7-Jul-08 4:04 
QuestionRe: Array of pointers to functions Pin
David Crow7-Jul-08 4:24
David Crow7-Jul-08 4:24 
AnswerRe: Array of pointers to functions Pin
softwaremonkey8-Jul-08 1:20
softwaremonkey8-Jul-08 1:20 
QuestionMigration Approach Pin
Member 35010957-Jul-08 2:55
Member 35010957-Jul-08 2:55 
QuestionAdo slow connection to sql server when compiled with VS2008 Pin
peterboulton7-Jul-08 2:26
professionalpeterboulton7-Jul-08 2:26 
QuestionQuery on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 1:48
ComplexLifeForm7-Jul-08 1:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
KarstenK7-Jul-08 2:29
mveKarstenK7-Jul-08 2:29 
GeneralRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 8:40
ComplexLifeForm7-Jul-08 8:40 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:48
Saurabh.Garg7-Jul-08 15:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:50
Saurabh.Garg7-Jul-08 15:50 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm9-Jul-08 2:28
ComplexLifeForm9-Jul-08 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.