in reply to Re^3: XS: free() outside of the main thread causes crash on Windows
in thread XS: free() outside of the main thread causes crash on Windows

Yes. I made following changes:
-free(msg); +Safefree(msg); -char *thread_arg = malloc((strlen(msg)+1)*sizeof(char)); +char *thread_arg; +Newx(thread_arg, strlen(msg)+1, char);
But this didn't help. Still crashes
  • Comment on Re^4: XS: free() outside of the main thread causes crash on Windows
  • Download Code