Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
AnswerRe: linked list Pin
Chris Losinger12-Aug-06 5:42
professionalChris Losinger12-Aug-06 5:42 
QuestionHow to control the behaviour of a toolbar button? Pin
Vinod Sankaranarayanan12-Aug-06 1:52
Vinod Sankaranarayanan12-Aug-06 1:52 
AnswerRe: How to control the behaviour of a toolbar button? Pin
Monty212-Aug-06 2:20
Monty212-Aug-06 2:20 
GeneralRe: How to control the behaviour of a toolbar button? Pin
Vinod Sankaranarayanan12-Aug-06 3:55
Vinod Sankaranarayanan12-Aug-06 3:55 
AnswerRe: How to control the behaviour of a toolbar button? Pin
ovidiucucu12-Aug-06 4:23
ovidiucucu12-Aug-06 4:23 
GeneralRe: How to control the behaviour of a toolbar button? Pin
Vinod Sankaranarayanan12-Aug-06 5:44
Vinod Sankaranarayanan12-Aug-06 5:44 
GeneralRe: How to control the behaviour of a toolbar button? [modified] Pin
ovidiucucu13-Aug-06 1:54
ovidiucucu13-Aug-06 1:54 
AnswerRe: How to control the behaviour of a toolbar button? Pin
Hamid_RT14-Aug-06 7:09
Hamid_RT14-Aug-06 7:09 
QuestionHost ActiveX control and draw to memory context? Pin
Andrew Altham12-Aug-06 0:22
Andrew Altham12-Aug-06 0:22 
AnswerRe: Host ActiveX control and draw to memory context? Pin
bob1697212-Aug-06 6:45
bob1697212-Aug-06 6:45 
QuestionRe: Host ActiveX control and draw to memory context? Pin
Andrew Altham12-Aug-06 23:08
Andrew Altham12-Aug-06 23:08 
AnswerRe: Host ActiveX control and draw to memory context? Pin
bob1697213-Aug-06 11:51
bob1697213-Aug-06 11:51 
Questionhooks work only for own application Pin
_tasleem11-Aug-06 23:58
_tasleem11-Aug-06 23:58 
AnswerRe: hooks work only for own application Pin
Naveen12-Aug-06 0:43
Naveen12-Aug-06 0:43 
GeneralRe: hooks work only for own application Pin
_tasleem12-Aug-06 2:15
_tasleem12-Aug-06 2:15 
GeneralRe: hooks work only for own application Pin
Naveen13-Aug-06 17:29
Naveen13-Aug-06 17:29 
QuestionFunction needed Pin
SandhyaSri11-Aug-06 20:22
SandhyaSri11-Aug-06 20:22 

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.