Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to get which address call my function Pin
David Crow13-Jul-07 4:45
David Crow13-Jul-07 4:45 
GeneralRe: how to get which address call my function Pin
Michael Dunn13-Jul-07 6:02
sitebuilderMichael Dunn13-Jul-07 6:02 
QuestionXML Signature Pin
Andy H12-Jul-07 9:54
Andy H12-Jul-07 9:54 
AnswerRe: XML Signature Pin
Nuxser12-Jul-07 19:53
Nuxser12-Jul-07 19:53 
QuestionHow to find the application crash reason in multithreaded MFC application Pin
ComplexLifeForm12-Jul-07 9:54
ComplexLifeForm12-Jul-07 9:54 
AnswerRe: How to find the application crash reason in multithreaded MFC application Pin
Perspx12-Jul-07 11:22
Perspx12-Jul-07 11:22 
GeneralRe: How to find the application crash reason in multithreaded MFC application Pin
DevMentor.org12-Jul-07 11:35
DevMentor.org12-Jul-07 11:35 
AnswerRe: How to find the application crash reason in multithreaded MFC application Pin
DevMentor.org12-Jul-07 11:28
DevMentor.org12-Jul-07 11:28 
your description of the bug is full of puns like 'give me some pointers' and 'really bugging me' ....lol Poke tongue | ;-P

anyways, it sounds like you have a memory corruption problem, there is no easy way to debug this as you said it can happen anytime.

So your first tasks should be to identify reproducible steps,
once you have this you can set your break points at the places where this pointer is getting referenced and see who is doing what.....maybe someone is deleting the memory to the pointer you are trying to access

also does it always crash at the same place, because this will be helpful!

there is nothing wrong with using _beingthreadex infact it's better to use this over the win32 API as _beingthreadex does some extra initialization with the c runtime lib that is not done with the Win32 API

also is your code checking to see that the pointer is not null before using it, etc are you practicing defensive programming techniques thoughout the code or blindly using a passed pointer etc that would result in an access violation and crash your app soon or later!

Yours Truly, The One and Only!

GeneralRe: How to find the application crash reason in multithreaded MFC application Pin
Perspx12-Jul-07 11:42
Perspx12-Jul-07 11:42 
GeneralRe: How to find the application crash reason in multithreaded MFC application Pin
DevMentor.org12-Jul-07 14:49
DevMentor.org12-Jul-07 14:49 
GeneralRe: How to find the application crash reason in multithreaded MFC application Pin
Mark Salsbery13-Jul-07 16:18
Mark Salsbery13-Jul-07 16:18 
AnswerRe: How to find the application crash reason in multithreaded MFC application Pin
Hans Dietrich12-Jul-07 12:47
mentorHans Dietrich12-Jul-07 12:47 
AnswerRe: How to find the application crash reason in multithreaded MFC application Pin
ComplexLifeForm12-Jul-07 19:49
ComplexLifeForm12-Jul-07 19:49 
AnswerRe: How to find the application crash reason in multithreaded MFC application Pin
Mark Salsbery13-Jul-07 16:26
Mark Salsbery13-Jul-07 16:26 
GeneralRe: How to find the application crash reason in multithreaded MFC application Pin
DevMentor.org13-Jul-07 20:56
DevMentor.org13-Jul-07 20:56 
QuestionWinsock Interrupt Pin
simoncoul12-Jul-07 7:54
simoncoul12-Jul-07 7:54 
AnswerRe: Winsock Interrupt Pin
markkuk12-Jul-07 10:07
markkuk12-Jul-07 10:07 
AnswerRe: Winsock Interrupt Pin
Nuxser12-Jul-07 17:56
Nuxser12-Jul-07 17:56 
GeneralRe: Winsock Interrupt Pin
simoncoul16-Jul-07 3:23
simoncoul16-Jul-07 3:23 
QuestionSDI project problem Pin
Max++12-Jul-07 4:12
Max++12-Jul-07 4:12 
AnswerRe: SDI project problem Pin
Tony Hill12-Jul-07 4:34
professionalTony Hill12-Jul-07 4:34 
GeneralRe: SDI project problem Pin
Max++12-Jul-07 5:34
Max++12-Jul-07 5:34 
GeneralRe: SDI project problem Pin
Tony Hill12-Jul-07 5:49
professionalTony Hill12-Jul-07 5:49 
GeneralRe: SDI project problem Pin
Max++12-Jul-07 6:26
Max++12-Jul-07 6:26 
GeneralRe: SDI project problem Pin
Tony Hill12-Jul-07 6:36
professionalTony Hill12-Jul-07 6:36 

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.