Page 1 of 1

Memory allocation failure - subblock

Posted: Tue Oct 09, 2018 7:44 pm
by Dr John P Weldon
Since I downloaded Vensim DSS v7.2 I have experienced the 'Memory allocation failure - subblock' fatal error when trying to load some of my models. The problem is not a matter of model size. My largest model loads OK. Other, smaller, models, do not.

All my models loaded without problem before I downloaded Vensim DSS v7.2.

Has anybody else encountered this problem? Does anybody know how to fix it?

Re: Memory allocation failure - subblock

Posted: Tue Oct 09, 2018 7:54 pm
by Administrator
If you view the task manager, how much memory is Vensim using when it crashes?

Re: Memory allocation failure - subblock

Posted: Tue Oct 09, 2018 7:55 pm
by Administrator
And are you certain that this is not related to one of your external functions?

Re: Memory allocation failure - subblock

Posted: Sun Oct 14, 2018 9:02 pm
by Dr John P Weldon
Vensim is using 12.3MB of memory when it displays the memory allocation failure message. My external functions are stable, syntactically correct and with working DLLs. All these models run normally, except on DSS 7.2.

Re: Memory allocation failure - subblock

Posted: Mon Oct 15, 2018 7:56 am
by Administrator
If you change the vensim_external function and return 0, what happens?

CFUNCTION int VEFCC vensim_external(VV *val,int nval,int funcid)
{
val[0].val = 0 ;
return(1) ; /* a 1 return value signals vensim of successful completion */
}