[C#] Strange Listbox exception

Associate
Joined
1 Feb 2006
Posts
1,868
Location
Reading
When I try to add an object to a listbox items collection that already contains an identical object I get an OutOfMemory exception O_o.

Changing one of the objects members so they are now not identical fixes the problem. Of course this isn't a major issue as it can be gotten around but it just seems strange to me that such an error occurred. Each object has their own memory allocation, from the lists point of view it indexes each separately so should be able to distinguish between the two.

Any ideas??
 
Can you post the code so we can see what is going on as it is going to be a little difficult to debug without.

TrUz
 
Back
Top Bottom