Memory allocation failure - subblock

Use this forum to post Vensim related questions.
Post Reply
Dr John P Weldon
Member
Posts: 39
Joined: Sun Oct 07, 2018 7:56 pm
Vensim version: DSS

Memory allocation failure - subblock

Post 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?
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: Memory allocation failure - subblock

Post by Administrator »

If you view the task manager, how much memory is Vensim using when it crashes?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: Memory allocation failure - subblock

Post by Administrator »

And are you certain that this is not related to one of your external functions?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Dr John P Weldon
Member
Posts: 39
Joined: Sun Oct 07, 2018 7:56 pm
Vensim version: DSS

Re: Memory allocation failure - subblock

Post 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.
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: Memory allocation failure - subblock

Post 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 */
}
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply