Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Xml in C++ Pin
David Crow26-Apr-07 10:33
David Crow26-Apr-07 10:33 
AnswerRe: Xml in C++ Pin
James R. Twine26-Apr-07 10:51
James R. Twine26-Apr-07 10:51 
GeneralRe: Xml in C++ Pin
Anka_Ame26-Apr-07 11:05
Anka_Ame26-Apr-07 11:05 
GeneralRe: Xml in C++ Pin
George L. Jackson26-Apr-07 13:28
George L. Jackson26-Apr-07 13:28 
GeneralRe: Xml in C++ Pin
George L. Jackson26-Apr-07 13:16
George L. Jackson26-Apr-07 13:16 
AnswerRe: Xml in C++ Pin
Paresh Chitte26-Apr-07 18:59
Paresh Chitte26-Apr-07 18:59 
AnswerRe: Xml in C++ Pin
Hamid_RT26-Apr-07 21:47
Hamid_RT26-Apr-07 21:47 
QuestionOver the HEAP: Tracking down a heap error Pin
@largeinsd26-Apr-07 8:14
@largeinsd26-Apr-07 8:14 
Hey code mercenaries,

I'm new to MFC, but I've been hired to update a
Visual C++/MFC application. Mostly going pretty
well, but it wouldn't be any fun if there weren't
at least a few hickups, right?

Basically the application that I am working on is
a quasi complicated app with about a thousand
classes or so, which uses numerous pages/tabs/views/lists
to display some database info.

I am adding a new SQL query class to a payment
calculator class so i can do some new calcs on the
db info.

This is causing a Heap Error:

/////
HEAP CORRUPTION DETECTED: after client block (#4531) at 0x015E51B0. CRT detected that the application wrote to
memory after end of the heap buffer.
/////

The error occurs when I am closing the application,
but I have tracked the source down to the following
line of code:

////
CSetspIsAttachedAuthValid* m_pSetspIsAttachedAuthValid2; ////

Basically the error occurs when this line is inserted
into the code, and does not occur when it is commented
out, regardless of whether I actually use this member
or not in any way. Just adding the above line to the
header file causes the heap error, which occurs on
close of the application.

What could possibly be causing this? Is there some reason
why I can't add a member to an existing class in this
application with out causing an error? i have added
other members to this same class with out trouble.

HUGE thanks - Jason




AnswerRe: Over the HEAP: Tracking down a heap error Pin
Mark Salsbery26-Apr-07 8:45
Mark Salsbery26-Apr-07 8:45 
QuestionRe: Over the HEAP: Tracking down a heap error Pin
David Crow26-Apr-07 10:00
David Crow26-Apr-07 10:00 
AnswerRe: Over the HEAP: Tracking down a heap error Pin
Stephen Hewitt26-Apr-07 13:49
Stephen Hewitt26-Apr-07 13:49 
QuestionVC++2005: ActiveX event that must be handled... Pin
Joan M26-Apr-07 7:17
professionalJoan M26-Apr-07 7:17 
QuestionEnquiry on playing avi file with MFC application Pin
YUANGE26-Apr-07 7:16
YUANGE26-Apr-07 7:16 
AnswerRe: Enquiry on playing avi file with MFC application Pin
David Crow26-Apr-07 10:01
David Crow26-Apr-07 10:01 
GeneralRe: Enquiry on playing avi file with MFC application Pin
YUANGE27-Apr-07 4:46
YUANGE27-Apr-07 4:46 
GeneralRe: Enquiry on playing avi file with MFC application Pin
David Crow27-Apr-07 4:50
David Crow27-Apr-07 4:50 
GeneralRe: Enquiry on playing avi file with MFC application Pin
YUANGE27-Apr-07 6:56
YUANGE27-Apr-07 6:56 
GeneralRe: Enquiry on playing avi file with MFC application Pin
David Crow27-Apr-07 9:18
David Crow27-Apr-07 9:18 
AnswerRe: Enquiry on playing avi file with MFC application Pin
Mark Salsbery26-Apr-07 10:26
Mark Salsbery26-Apr-07 10:26 
AnswerRe: Enquiry on playing avi file with MFC application Pin
Hamid_RT26-Apr-07 21:43
Hamid_RT26-Apr-07 21:43 
QuestionVC++2005: if an app loses the focus, how can I know? Pin
Joan M26-Apr-07 5:35
professionalJoan M26-Apr-07 5:35 
AnswerRe: VC++2005: if an app loses the focus, how can I know? Pin
Arman S.26-Apr-07 5:47
Arman S.26-Apr-07 5:47 
GeneralRe: VC++2005: if an app loses the focus, how can I know? Pin
Joan M26-Apr-07 5:59
professionalJoan M26-Apr-07 5:59 
QuestionC++ where to First? Pin
z1n26-Apr-07 4:58
z1n26-Apr-07 4:58 
AnswerRe: C++ where to First? Pin
Arman S.26-Apr-07 5:36
Arman S.26-Apr-07 5: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.