Getting an access violation while multi-threading and I don't know why

Try to return 0, not uint32()