Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CMap::SetAt() throws a CMemoryException

Status
Not open for further replies.

rcasam

Programmer
Mar 26, 2004
1
DE
Hallo C++ world,

I would be appreciate your help!. I've a class with a CMap member variable. I have to store in it aprox. 8000 CMyObject elements. But after the 4600th element I get a CMemoryException.

I tried with a CArray variable. Here can I store only 1500 elements.

Can anyone tell me how can I work around this problem using a MFC collection.

With kind regards,

Reinaldo

 
Hmm, have you tried COblList yet? It basically works like a linked list. You may get the same problem though since it is somewhat similar to the other two.

-Bones
 
Hey, I just had a thought. Is it possible for you to simply store pointers to your objects?

-Bones
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top