Advertisement

Memory allocation error?

Started by August 17, 2000 01:10 PM
10 comments, last by chippydip 24 years, 4 months ago
Ooops, that was me.
This is just a guess but it looks like the error isn''t with the memory allocation itself but the constructor call afterwords. To state the obvious, new basically calls malloc() and then the constructor of whatever you''ve allocated memory for. It looks like for some reason it''s trying to find a valid default constructor for type byte and failing. Do you have byte typedef''d to char or is it some custom class? If you can, trace through the code and see if you can watch it explode.

This topic is closed to new replies.

Advertisement