|
-
December 7th, 2011, 02:02 PM
#12
Re: MFC ListBox problem
 Originally Posted by Paul McKenzie
OK. I was looking at the issue differently -- after that function exits. If the OP attempts to do anything with the CObArray, even if that line didn't crash right away, the program is still accessing an invalid pointer.
So there are two problems, the immediate one, and one that would have occurred later on if the first one didn't trip the ASSERT().
Regards,
Paul McKenzie
Yeah, your point is still valid and still waiting for him. A CStringArray will make both problems go away, assuming he really needs one.
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
|