Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a Makefile from this mess Pin
pkfox13-Oct-22 21:40
professionalpkfox13-Oct-22 21:40 
GeneralRe: Create a Makefile from this mess Pin
k505414-Oct-22 4:13
mvek505414-Oct-22 4:13 
QuestionIs this array of 2D vectors? Pin
Sk. Azraf Sami7-Oct-22 20:32
Sk. Azraf Sami7-Oct-22 20:32 
AnswerRe: Is this array of 2D vectors? Pin
Richard MacCutchan7-Oct-22 21:35
mveRichard MacCutchan7-Oct-22 21:35 
QuestionStyle question Pin
Mircea Neacsu3-Oct-22 15:33
Mircea Neacsu3-Oct-22 15:33 
AnswerRe: Style question Pin
Graham Breach3-Oct-22 21:23
Graham Breach3-Oct-22 21:23 
GeneralRe: Style question Pin
Mircea Neacsu4-Oct-22 2:27
Mircea Neacsu4-Oct-22 2:27 
AnswerRe: Style question Pin
CPallini3-Oct-22 23:47
mveCPallini3-Oct-22 23:47 
GeneralRe: Style question Pin
Mircea Neacsu4-Oct-22 2:28
Mircea Neacsu4-Oct-22 2:28 
GeneralRe: Style question Pin
CPallini7-Oct-22 1:35
mveCPallini7-Oct-22 1:35 
AnswerRe: Style question Pin
BernardIE53177-Oct-22 3:14
BernardIE53177-Oct-22 3:14 
GeneralRe: Style question Pin
Mircea Neacsu7-Oct-22 3:18
Mircea Neacsu7-Oct-22 3:18 
GeneralRe: Style question Pin
BernardIE53177-Oct-22 3:27
BernardIE53177-Oct-22 3:27 
GeneralRe: Style question Pin
Mircea Neacsu7-Oct-22 3:40
Mircea Neacsu7-Oct-22 3:40 
Question'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 6:12
professionalKevin Marois3-Oct-22 6:12 
AnswerRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 6:26
mveRichard MacCutchan3-Oct-22 6:26 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 6:30
professionalKevin Marois3-Oct-22 6:30 
GeneralRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 6:39
mveRichard MacCutchan3-Oct-22 6:39 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 6:43
professionalKevin Marois3-Oct-22 6:43 
GeneralRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 6:50
mveRichard MacCutchan3-Oct-22 6:50 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 6:51
professionalKevin Marois3-Oct-22 6:51 
QuestionList assertation failure Pin
ForNow2-Oct-22 15:50
ForNow2-Oct-22 15:50 
Hi

I have the following

C++
struct tcbholder
	{
		char* tcb;
		char programname[8];
		//	struct stdecs *storageptr;
		struct stdecs stdecsx;
		list <stdecs> strptr;
		list <stdecs>::iterator stfirstptr;
		list <stdecs>::iterator straverse;
	};


C++
struct stdecs
	{
		struct vsmdesc stordesc;
		char* tcb;
		struct blkdesc ablkdescx;
		struct blkdesc fblkdescx;
		//	struct stdecs* nextdecs;
		
		list <blkdesc> ablkptr;
		list<blkdesc>::iterator blktraverse;
		list<blkdesc> fblkptr;
	}

C++
struct blkdesc
	{
		char type;
		int blkaddr;
		int blklen;
		//	struct blkdesc* nextblkdesc;
	};


I declare a list class
C++
list<tcbholder> tcbcollecter;

then a iterator

C++
list <tcbholder>::iterator tcbitrate;


I am able to initialize the main iterator

C++
tcbitrate = tcbcollecter.begin();


However when I try

C++
tcbitrate->straverse = tcbitrate->strptr.begin();


I get the following


C++
_STL_VERIFY(this->_Ptr != _Mycont->_Myhead, "cannot dereference end list iterator");


its in the list member line 151

Dont Understand

Thanks
AnswerRe: List assertation failure Pin
Graham Breach2-Oct-22 21:06
Graham Breach2-Oct-22 21:06 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 21:22
ForNow2-Oct-22 21:22 
GeneralRe: List assertation failure Pin
Graham Breach2-Oct-22 21:46
Graham Breach2-Oct-22 21:46 

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.