Click here to Skip to main content
16,015,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: List assertation failure Pin
ForNow3-Oct-22 8:49
ForNow3-Oct-22 8:49 
AnswerRe: List assertation failure Pin
CPallini2-Oct-22 21:08
mveCPallini2-Oct-22 21:08 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 22:17
ForNow2-Oct-22 22:17 
QuestionMessage Closed Pin
2-Oct-22 9:45
Member 149687712-Oct-22 9:45 
AnswerRe: Connect to terminal native window - repost Pin
Dave Kreskowiak2-Oct-22 16:49
mveDave Kreskowiak2-Oct-22 16:49 
AnswerRe: Connect to terminal native window - repost Pin
Richard MacCutchan2-Oct-22 22:34
mveRichard MacCutchan2-Oct-22 22:34 
GeneralMessage Closed Pin
3-Oct-22 7:50
Member 149687713-Oct-22 7:50 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 9:15
mveRichard MacCutchan3-Oct-22 9:15 
GeneralMessage Closed Pin
3-Oct-22 11:13
Member 149687713-Oct-22 11:13 
GeneralRe: Connect to terminal native window - repost Pin
k50543-Oct-22 11:58
mvek50543-Oct-22 11:58 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 21:54
mveRichard MacCutchan3-Oct-22 21:54 
QuestionRe: Connect to terminal native window - repost Pin
David Crow4-Oct-22 5:17
David Crow4-Oct-22 5:17 
AnswerMessage Closed Pin
4-Oct-22 7:03
Member 149687714-Oct-22 7:03 
GeneralMessage Closed Pin
4-Oct-22 19:10
Member 149687714-Oct-22 19: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.