Recommended Posts

I got this error after making some changes in a class in a win32/OpenGL app. According to msdn this happens when class exceeds 64k limit. But the class isnt very large, it has 12 functions, one integer data member, and two arrays of an other class. Thanks in advance for any help.
Here is the class code:

Share on other sites

Whats the deal with the 64k limit? It cant be a limit to the tatal data amount, so is it a limit to the amount of functions and data members or something?

It''s a limit to the total data amount. Objects may be created on the stack, and it''s a bad idea to have large amounts of anything on the stack. Anytime you''re allocating significant amounts of memory, do it on the heap.