|
-
October 16th, 2007, 12:14 AM
#1
List iteration Problem
Hi All,
I am using list class in my project(MFC Application). I have made list like .....
typedef std::list <RECT> rectlist; // Here list is of type RECT
in one header file. And during my project execution I am storing rectangles in the list.
And now,When I use list iterator in another class like below....( I have already included its header file in using class)
rectlist::iterator i;
And i use this iterator like below in any other function......
for (i = rects.begin(); i != rects.end(); i++)
{
CaptureScreen(*i, m_mainbuff); // Error is here
}
I got error msg like ...
list iterator not dereferencable
at runtime in debug assertion Failed Box.
Thanks in Advance...
Ashish
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|