new_model, close_model problem
Brought to you by:
michaelz
I want to load several models, then load another set of
models. So I used ffll_new_model the required number
of times, and then used ffll_close_model on the
appropriate idx to clean everything, to be able to load
the other set of models. But I always get a memory
leaks from the ffll dll when trying to do this.
Are those routines ok, or am I missing something ?
thx for replying !
gurlu_gurlu@hotmail.com
Logged In: YES
user_id=140371
this seems to be a problem with the way STL moves stuff around
behind the scenes... it's been fixed (and will be updated soon)
but for now you can open mulitple models if you do all calls to
ffll_new_model() BEFORE loading any models.
For example this works:
// create and load the model
int model = ffll_new_model();
int model2 = ffll_new_model();
int model3 = ffll_new_model();
int model4 = ffll_new_model();
While this causes the error you got: