Memory allocation error?
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement