Click here to Skip to main content
15,794,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 7:12
professionalKevin Marois3-Oct-22 7:12 
AnswerRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 7:26
mveRichard MacCutchan3-Oct-22 7:26 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 7:30
professionalKevin Marois3-Oct-22 7:30 
GeneralRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 7:39
mveRichard MacCutchan3-Oct-22 7:39 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 7:43
professionalKevin Marois3-Oct-22 7:43 
GeneralRe: 'System': a namespace with this name does not exist Pin
Richard MacCutchan3-Oct-22 7:50
mveRichard MacCutchan3-Oct-22 7:50 
GeneralRe: 'System': a namespace with this name does not exist Pin
Kevin Marois3-Oct-22 7:51
professionalKevin Marois3-Oct-22 7:51 
QuestionList assertation failure Pin
ForNow2-Oct-22 16:50
ForNow2-Oct-22 16: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 22:06
Graham Breach2-Oct-22 22:06 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 22:22
ForNow2-Oct-22 22:22 
GeneralRe: List assertation failure Pin
Graham Breach2-Oct-22 22:46
Graham Breach2-Oct-22 22:46 
GeneralRe: List assertation failure Pin
ForNow3-Oct-22 9:49
ForNow3-Oct-22 9:49 
AnswerRe: List assertation failure Pin
CPallini2-Oct-22 22:08
mveCPallini2-Oct-22 22:08 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 23:17
ForNow2-Oct-22 23:17 
QuestionMessage Closed Pin
2-Oct-22 10:45
Member 149687712-Oct-22 10:45 
AnswerRe: Connect to terminal native window - repost Pin
Dave Kreskowiak2-Oct-22 17:49
mveDave Kreskowiak2-Oct-22 17:49 
AnswerRe: Connect to terminal native window - repost Pin
Richard MacCutchan2-Oct-22 23:34
mveRichard MacCutchan2-Oct-22 23:34 
GeneralMessage Closed Pin
3-Oct-22 8:50
Member 149687713-Oct-22 8:50 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 10:15
mveRichard MacCutchan3-Oct-22 10:15 
GeneralMessage Closed Pin
3-Oct-22 12:13
Member 149687713-Oct-22 12:13 
GeneralRe: Connect to terminal native window - repost Pin
k50543-Oct-22 12:58
mvek50543-Oct-22 12:58 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 22:54
mveRichard MacCutchan3-Oct-22 22:54 
QuestionRe: Connect to terminal native window - repost Pin
David Crow4-Oct-22 6:17
David Crow4-Oct-22 6:17 
AnswerMessage Closed Pin
4-Oct-22 8:03
Member 149687714-Oct-22 8:03 
GeneralMessage Closed Pin
4-Oct-22 20:10
Member 149687714-Oct-22 20:10 

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.