Click here to Skip to main content
15,913,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: please help Pin
ovidiucucu13-Aug-06 2:47
ovidiucucu13-Aug-06 2:47 
AnswerRe: please help Pin
Hamid_RT13-Aug-06 9:46
Hamid_RT13-Aug-06 9:46 
AnswerRe: please help Pin
Kevin McFarlane13-Aug-06 10:43
Kevin McFarlane13-Aug-06 10:43 
Questionsystem menu icon on dialog box Pin
Tara1412-Aug-06 20:18
Tara1412-Aug-06 20:18 
AnswerRe: system menu icon on dialog box Pin
Michael Dunn12-Aug-06 21:26
sitebuilderMichael Dunn12-Aug-06 21:26 
GeneralRe: system menu icon on dialog box Pin
Tara1412-Aug-06 22:35
Tara1412-Aug-06 22:35 
GeneralRe: system menu icon on dialog box Pin
premkamalg13-Aug-06 23:44
premkamalg13-Aug-06 23:44 
AnswerRe: system menu icon on dialog box [modified] Pin
DollfaceYY13-Aug-06 15:59
DollfaceYY13-Aug-06 15:59 
QuestionCan vectors really hold classes? Pin
Lord Kixdemp12-Aug-06 14:49
Lord Kixdemp12-Aug-06 14:49 
AnswerRe: Can vectors really hold classes? Pin
Gerald Schwab12-Aug-06 15:14
Gerald Schwab12-Aug-06 15:14 
GeneralRe: Can vectors really hold classes? Pin
Lord Kixdemp12-Aug-06 15:25
Lord Kixdemp12-Aug-06 15:25 
GeneralRe: Can vectors really hold classes? Pin
markkuk13-Aug-06 1:22
markkuk13-Aug-06 1:22 
Questioninsert/add a GIF image in VC++ 6.0 Pin
Dhananjayak0212-Aug-06 9:06
Dhananjayak0212-Aug-06 9:06 
AnswerRe: insert/add a GIF image in VC++ 6.0 Pin
Joe Woodbury12-Aug-06 19:01
professionalJoe Woodbury12-Aug-06 19:01 
AnswerRe: insert/add a GIF image in VC++ 6.0 Pin
A_Fa12-Aug-06 19:07
A_Fa12-Aug-06 19:07 
AnswerRe: insert/add a GIF image in VC++ 6.0 Pin
tanvon malik12-Aug-06 21:16
tanvon malik12-Aug-06 21:16 
AnswerRe: insert/add a GIF image in VC++ 6.0 Pin
Hamid_RT13-Aug-06 9:45
Hamid_RT13-Aug-06 9:45 
GeneralRe: insert/add a GIF image in VC++ 6.0 Pin
Dhananjayak0214-Aug-06 4:51
Dhananjayak0214-Aug-06 4:51 
GeneralRe: insert/add a GIF image in VC++ 6.0 Pin
Hamid_RT14-Aug-06 7:38
Hamid_RT14-Aug-06 7:38 
QuestionVirtual memory allocation Pin
RomTibi12-Aug-06 6:02
RomTibi12-Aug-06 6:02 
AnswerRe: Virtual memory allocation Pin
tanvon malik12-Aug-06 6:31
tanvon malik12-Aug-06 6:31 
GeneralRe: Virtual memory allocation Pin
RomTibi12-Aug-06 9:04
RomTibi12-Aug-06 9:04 
AnswerRe: Virtual memory allocation Pin
Mike Dimmick13-Aug-06 5:43
Mike Dimmick13-Aug-06 5:43 
GeneralRe: Virtual memory allocation Pin
RomTibi13-Aug-06 8:01
RomTibi13-Aug-06 8:01 
Questionlinked list Pin
jon-8012-Aug-06 5:29
professionaljon-8012-Aug-06 5:29 
I was trying to follow through a tutorial I found at the following site to implement a linked list:

http://etude.uwaterloo.ca/~ctrudeau/lessons/C++/tutorial2.html. The source code is on the website, and I was trying to test this class so I could inherit it from an implementation I was trying to code.

The code breaks when the method 'first' is called



p = (DataObject *)list.first();



which calls inline function *first

List.cpp

void *first()

{

if( pHead == NULL )

return( NULL );



return( pHead->Data() );

}



Which calls method *Data

..

List.h

void *Data() { return( pData ); }


Then the code breaks and the following error is displayed:
Unhandled exception at 0x... in ListClass.exe: 0x... (another memory address) Access violation reading location 0x... (another memory address).

Any idea what might have caused this leak?


Jon

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.