-
-
Notifications
You must be signed in to change notification settings - Fork 273
Description
Well I have an associative array that holds an array of integers, int[][int] basically. For one frame that is run the contents are valid and the code functions normally. The second time around, most of the contents of the array are empty only one valid entry. Then after a few seconds the program fails trying to access an invalid pointer, for the associative array. It was a global variable using __gshared, when I removed that and used thread local storage, it functioned correctly. The code that's affected is in a DLL file (on windows) that is loaded at runtime using Runtime.loadLibrary. I'm also using the SimpleDllMain mixin from core.sys.windows.dll. So it seems that it is being garbage collected for some reason, even though it still exists and is valid. I'm using LDC 1.1.0-beta5.