Closed genotrance closed 7 years ago
I'm trying to run a proc in parallel using spawn but it doesn't compile since winregistry is using a global variable:-
winregistry.nim(356, 6) Warning: 'queryMaxKeyLength' is not GC-safe as it accesses 'nullWinString' which is a global using GC'ed memory [GcUnsafe2]
This can be fixed by letting each proc have its own copy of nullWinString. There seem to be multiple instances of this:-
queryMaxKeyLength() countValues() countSubkeys()
Works now?
Yep works great, thanks!
I'm trying to run a proc in parallel using spawn but it doesn't compile since winregistry is using a global variable:-
This can be fixed by letting each proc have its own copy of nullWinString. There seem to be multiple instances of this:-