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

C / C++ / MFC

 
GeneralAccess violation reading location 0xcdcdcddd. Pin
aj168211-Jan-05 22:31
aj168211-Jan-05 22:31 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
ThatsAlok11-Jan-05 23:53
ThatsAlok11-Jan-05 23:53 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
aj168212-Jan-05 0:45
aj168212-Jan-05 0:45 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
Cedric Moonen12-Jan-05 1:03
Cedric Moonen12-Jan-05 1:03 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
aj168212-Jan-05 1:13
aj168212-Jan-05 1:13 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
Cedric Moonen12-Jan-05 1:24
Cedric Moonen12-Jan-05 1:24 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
ThatsAlok12-Jan-05 1:23
ThatsAlok12-Jan-05 1:23 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
digwizfox13-Jan-05 6:49
digwizfox13-Jan-05 6:49 
is the debugger pointing to the line of code that calls lockWait()? Are you sure that m_pSendLock was initialized properly? Usually, that type of crash is associated with a pointer that is A) uninitialized (not set to NULL by default) and B) never set to actually point to an object. xCDCDCDDD is the kind of number that variables sometimes get set to if they were never initialized to 0 or NULL in a class constructor. Always initialize pointers to 0. In this case, obviously, you have to set the pointer to point to some valid object.

Are you doing something like the below code to setup your pointer somewhere?

m_pSendLock = &theSemaphoreObject; or
m_pSendLock = new CSemaphore;

If so, what specifically are you doing to set the pointer? Is the crash occurring when your application exits? Another kind of situation that occurs is when you have a thread that doesn't terminate before your class is destroyed (on exit). The object gets destroyed but the thread continues to execuate and then trys to call a function with an invalid pointer.
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
aj168213-Jan-05 7:19
aj168213-Jan-05 7:19 
GeneralRe: Access violation reading location 0xcdcdcddd. Pin
digwizfox13-Jan-05 7:45
digwizfox13-Jan-05 7:45 
QuestionCDialog Help urgent???? Pin
nutkase11-Jan-05 21:45
nutkase11-Jan-05 21:45 
AnswerRe: CDialog Help urgent???? Pin
toxcct11-Jan-05 22:29
toxcct11-Jan-05 22:29 
GeneralRe: CDialog Help urgent???? Pin
nutkase12-Jan-05 0:37
nutkase12-Jan-05 0:37 
GeneralRe: CDialog Help urgent???? Pin
toxcct12-Jan-05 21:09
toxcct12-Jan-05 21:09 
AnswerRe: CDialog Help urgent???? Pin
Martin Koorts12-Jan-05 0:04
Martin Koorts12-Jan-05 0:04 
GeneralRe: CDialog Help urgent???? Pin
nutkase12-Jan-05 0:29
nutkase12-Jan-05 0:29 
GeneralRe: CDialog Help urgent???? Pin
Martin Koorts12-Jan-05 1:34
Martin Koorts12-Jan-05 1:34 
GeneralRe: CDialog Help urgent???? Pin
nutkase12-Jan-05 17:47
nutkase12-Jan-05 17:47 
GeneralWindow style Internet Explorer Pin
vyjesh11-Jan-05 21:23
vyjesh11-Jan-05 21:23 
GeneralCallBack Definition. Pin
Neelesh K J Jain11-Jan-05 21:00
Neelesh K J Jain11-Jan-05 21:00 
GeneralRe: CallBack Definition. Pin
Abhi Lahare11-Jan-05 23:59
Abhi Lahare11-Jan-05 23:59 
GeneralRe: CallBack Definition. Pin
Chris Losinger12-Jan-05 1:05
professionalChris Losinger12-Jan-05 1:05 
GeneralRe: CallBack Definition. Pin
Antony M Kancidrowski12-Jan-05 2:34
Antony M Kancidrowski12-Jan-05 2:34 
General#pragma question Pin
alex.barylski11-Jan-05 20:30
alex.barylski11-Jan-05 20:30 
GeneralRe: #pragma question Pin
Martin Koorts12-Jan-05 0:18
Martin Koorts12-Jan-05 0:18 

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.