Click here to Skip to main content
15,929,263 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShellExecute and run WordPad.exe ?? Pin
11-Mar-02 16:43
suss11-Mar-02 16:43 
AnswerRe: ShellExecute and run WordPad.exe ?? Pin
Nish Nishant11-Mar-02 17:13
sitebuilderNish Nishant11-Mar-02 17:13 
AnswerRe: ShellExecute and run WordPad.exe ?? Pin
Lim Bio Liong11-Mar-02 17:30
Lim Bio Liong11-Mar-02 17:30 
GeneralKnown issues with MoveMemory() in XP Pin
11-Mar-02 15:52
suss11-Mar-02 15:52 
GeneralRe: Known issues with MoveMemory() in XP Pin
Tim Smith11-Mar-02 17:08
Tim Smith11-Mar-02 17:08 
GeneralCopy Assignment :: C++ Pin
valikac11-Mar-02 15:42
valikac11-Mar-02 15:42 
GeneralRe: Copy Assignment :: C++ Pin
Paul M Watt11-Mar-02 17:29
mentorPaul M Watt11-Mar-02 17:29 
GeneralRe: Copy Assignment :: C++ Pin
valikac11-Mar-02 18:51
valikac11-Mar-02 18:51 
The possible memory leak is not a problem because the program makes certain that "this" is equal to 0 before calling ::cloneList.

pOriginNode gets initialize to CMyListNode in the declaration file (.h).

class CMyList
{
...
private:
CMyListNode = *pOriginNode;
};

As for determination the cause of the crash, I am quite certain that the crash begins here:

void CMyList::cloneList(const CMyList &rSourceList)
{ cout << "\nCheck0a";
nodeCnt = rSourceList.nodeCnt;
cout << "\nCheck0b";

-------Begin crash---------
pOriginNode->info = rSourceList.pOriginNode->info; CMyListNode *pNewNode = pOriginNode;...
---------------------------

For some reason, it does not like anything from "this" assigned to anything from rSourceList.

In other words, it does not want to be assigned, period. I am not sure if the fact that rSourceList is really a pointer to a pointer to a class (pointer->pointer->class object) has anything to do with it.

Kuphryn
GeneralFixed! Pin
valikac11-Mar-02 19:11
valikac11-Mar-02 19:11 
GeneralTrying to Find = in a CString Pin
11-Mar-02 14:57
suss11-Mar-02 14:57 
GeneralRe: Trying to Find = in a CString Pin
jafrazee11-Mar-02 15:53
jafrazee11-Mar-02 15:53 
GeneralRe: Trying to Find = in a CString Pin
Nish Nishant11-Mar-02 17:15
sitebuilderNish Nishant11-Mar-02 17:15 
GeneralRe: Trying to Find = in a CString Pin
12-Mar-02 0:26
suss12-Mar-02 0:26 
GeneralRe: Trying to Find = in a CString Pin
12-Mar-02 0:39
suss12-Mar-02 0:39 
Generalnebulous TRACE output Pin
moredip11-Mar-02 13:37
moredip11-Mar-02 13:37 
GeneralRe: nebulous TRACE output Pin
Shog911-Mar-02 14:07
sitebuilderShog911-Mar-02 14:07 
GeneralRe: nebulous TRACE output Pin
Roger Allen11-Mar-02 22:12
Roger Allen11-Mar-02 22:12 
GeneralRe: nebulous TRACE output Pin
moredip12-Mar-02 5:23
moredip12-Mar-02 5:23 
GeneralRe: nebulous TRACE output Pin
Stephen C. Steel12-Mar-02 11:58
Stephen C. Steel12-Mar-02 11:58 
GeneralRe: nebulous TRACE output Pin
Stephen C. Steel12-Mar-02 12:12
Stephen C. Steel12-Mar-02 12:12 
GeneralRe: nebulous TRACE output Pin
moredip12-Mar-02 12:20
moredip12-Mar-02 12:20 
Questiontoo simple to work? Pin
11-Mar-02 13:18
suss11-Mar-02 13:18 
AnswerRe: too simple to work? Pin
Joaquín M López Muñoz11-Mar-02 20:14
Joaquín M López Muñoz11-Mar-02 20:14 
GeneralRe: too simple to work? Pin
12-Mar-02 4:47
suss12-Mar-02 4:47 
GeneralRe: too simple to work? Pin
Atila12-Mar-02 5:25
Atila12-Mar-02 5:25 

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.