Think about Loose Coupling | |
PerlMonks |
Re^7: XS: free() outside of the main thread causes crash on Windowsby BrowserUk (Patriarch) |
on Sep 25, 2014 at 09:26 UTC ( [id://1101932]=note: print w/replies, xml ) | Need Help?? |
the old "#undef free" trick I was reluctant to mention that as I am unfamiliar with the effects in a mingw environment. (By undeffing free, we get to call the free() that we want, not the the free() that perl defined for us.) It would be interesting to see the /E output after doing that? I'm guessing that it gives your the CRT free(), but that then brings up the question: If you need the CRT free(), what/where/how was the thing being freed, allocated? I suspect you may have been on the right lines in your other post; and the problem is that actually, the OP is freeing the wrong thing. And the fact that by doing so using the CRT free() doesn't cause a crash is simply luck. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|