Re: FreeLibrary()
- Posted by jimcbrown (admin) Nov 02, 2021
- 806 views
katsmeow said...
The need to load and unload code while running has come up again. I was wondering if this memory issue was ever solved in OE, or if Phix resolved it?
The pastey links are still good for the test code that demo's the leaking.
Kat
Afraid not. It only happened on windoze, and while I wasn't able to drive this to ground my working theory is that we exposed some kind of memory leak related to loadlibrary in the C stdlib as provided with MinGW.
It's possible that later versions of MinGW fixed the leak and we wouldn't have the issue anymore, but I no longer have a windoze system to check this.
I haven't tested Phix, but I suspect that the issue would not be present on Phix due to the above.