I would bet that it is not a Nim problem, but related to your wrong casts or a 
winnim issue.

Try compiling with --gc:arc to see the difference.

Then try --gc:arc -d:useMalloc and run it with valgrind.

Maybe that gives you more informations.

Reply via email to