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

Have you heard of perlclib? It advocates using Newx() and Safefree() instead of malloc/free
  • Comment on Re^3: XS: free() outside of the main thread causes crash on Windows

Replies are listed 'Best First'.
Re^4: XS: free() outside of the main thread causes crash on Windows
by OlegG (Monk) on Sep 25, 2014 at 07:45 UTC
    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