Quote Originally Posted by Paul McKenzie View Post
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.