• Create Account

#ActualHodgman

Posted 18 February 2013 - 01:25 AM

In your screenshot, the error is occuring in the Model class, not your ModelType struct.
It looks like you're calling Model::ReleaseTexture on an object that hasn't been created, or on an object that has been deleted.
e.g.
Model* model;
model->ReleaseTexture();//crash
//or
Model* model = new Model();
delete model;
model->ReleaseTexture();//crash

#1Hodgman

Posted 18 February 2013 - 01:23 AM

In your screenshot, the error is occuring in the Model class, not your ModelType struct.

It looks like you're calling Model::ReleaseTexture after a model has been deleted.

e.g.

Model* model = new Model();
delete model;
model->ReleaseTexture();//crash

PARTNERS