Re: DLL memory leaks
- Posted by andi49 Feb 05, 2014
- 1531 views
Hallo
I tried to follow this thread.
I tried to understand what's going on.
But i didn't get it.
i found the following in the referenced links...
It's a quote from jimcbrown.
I'm not so sure that this is the full story now. I tried cutting out std/dll.e entirely here, using only the operating system library (plus a small helper c lib to deal with the E_SEQUENCE transition), and on startup it uses 14MB but then only uses 2MB more (16MB total) for 10k runs. However, for 90k runs (which takes 27 seconds), it uses 75MB total. http://openeuphoria.org/pastey/155.wc I even tried cutting out the calls to the helper lib, in case repeated c_func() calls or the creation of new sequences was the culprit, but I still saw 75MB after 90k runs. I guess even using dlclose() doesn't do the job.
Why should a program that uses a dll 90000 times in 27seconds release this dll always after using it?
Maybe I'am a stupid but, really, i do not understand this.
(Please have patience, I'am not a programing expert)
Please help.
Andreas