Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failure wincore.cpp Pin
SublimeRide26-Oct-05 9:09
SublimeRide26-Oct-05 9:09 
GeneralRe: Debug Assertion Failure wincore.cpp Pin
John M. Drescher26-Oct-05 10:11
John M. Drescher26-Oct-05 10:11 
GeneralRe: Debug Assertion Failure wincore.cpp Pin
SublimeRide27-Oct-05 15:12
SublimeRide27-Oct-05 15:12 
GeneralRe: Debug Assertion Failure wincore.cpp Pin
John M. Drescher28-Oct-05 3:27
John M. Drescher28-Oct-05 3:27 
GeneralRe: Debug Assertion Failure wincore.cpp Pin
SublimeRide28-Oct-05 20:23
SublimeRide28-Oct-05 20:23 
AnswerUPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide25-Oct-05 13:41
SublimeRide25-Oct-05 13:41 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
David Crow26-Oct-05 2:55
David Crow26-Oct-05 2:55 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide26-Oct-05 7:13
SublimeRide26-Oct-05 7:13 
Thanks again.

Some answers:

IDC_SCHED_EVENTS is a list control. It basically has a text list of upcoming events in order.
The member variable m_Eventlist is a control for the list. It is used to add/delete/reorder the lists items.

This functions fine with no assert failures as long as I don't add any member variables to anything on the page.

The variable I added m_test is also a control variable for a static bitmap. I'm only intending to use it to show/hide the bitmap based on a condition (that is not associated with the list control in any way).

I guess what I'm struggling with is the line ASSERT(FALSE); This is a guaranteed failure.
The code above it is:

if (*lplpfn == NULL)
*lplpfn = oldWndProc; // the first control of that type created
#ifdef _DEBUG
else if (*lplpfn != oldWndProc)
{

This code seems to me to be indicating that if I'm in debug mode, and more than one (or a subclassed) control of a particular type is created then this will fail. There is more than one list control (they're on separate dialogs) but why would this fail by adding a member variable to a bitmap control? Just thinking out loud.

Jim
QuestionRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
David Crow26-Oct-05 8:24
David Crow26-Oct-05 8:24 
AnswerRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide26-Oct-05 9:04
SublimeRide26-Oct-05 9:04 
AnswerRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide27-Oct-05 15:06
SublimeRide27-Oct-05 15:06 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
David Crow28-Oct-05 2:23
David Crow28-Oct-05 2:23 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide28-Oct-05 10:49
SublimeRide28-Oct-05 10:49 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide28-Oct-05 20:20
SublimeRide28-Oct-05 20:20 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
David Crow31-Oct-05 2:33
David Crow31-Oct-05 2:33 
GeneralRe: UPDATE! Re: Debug Assertion Failure wincore.cpp Pin
SublimeRide3-Nov-05 8:11
SublimeRide3-Nov-05 8:11 
QuestionMFC/COM EXE and DLL debugging Pin
Babto20-Oct-05 10:08
Babto20-Oct-05 10:08 
AnswerRe: MFC/COM EXE and DLL debugging Pin
PJ Arends20-Oct-05 11:14
professionalPJ Arends20-Oct-05 11:14 
GeneralRe: MFC/COM EXE and DLL debugging Pin
Babto20-Oct-05 11:46
Babto20-Oct-05 11:46 
AnswerRe: MFC/COM EXE and DLL debugging Pin
Chris Losinger20-Oct-05 11:17
professionalChris Losinger20-Oct-05 11:17 
QuestionI want a Timer fuction on Non UI thread Pin
Anonymous20-Oct-05 9:26
Anonymous20-Oct-05 9:26 
AnswerRe: I want a Timer fuction on Non UI thread Pin
willy_total20-Oct-05 9:35
willy_total20-Oct-05 9:35 
GeneralRe: I want a Timer fuction on Non UI thread Pin
RaajaOfSelf20-Oct-05 9:51
RaajaOfSelf20-Oct-05 9:51 
GeneralRe: I want a Timer fuction on Non UI thread Pin
willy_total21-Oct-05 3:39
willy_total21-Oct-05 3:39 
AnswerRe: I want a Timer fuction on Non UI thread Pin
RaajaOfSelf20-Oct-05 9:49
RaajaOfSelf20-Oct-05 9:49 

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.