F*cked by memory corruption after assiging value to associative array

frame frame86 at live.com
Thu Jan 28 20:17:09 UTC 2021


On Thursday, 28 January 2021 at 19:22:16 UTC, tsbockman wrote:
> It is possible to get things sort of working with on Windows, 
> anyway.

I'm ok with it as long as the memory is not re-used by the GC. It 
seems that it can be prevented with addRoot() successfully. The 
other problem with shared slice data is somewhat logical as the 
DLL GC doesn't care on the origin of the data from another thread 
and the data's origin GC sees any reference to it gone after 
passing it to the DLL function. They are isolated and data which 
must be kept longer should be copied where it's necessary.


More information about the Digitalmars-d-learn mailing list