Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Inline::C demonstration for C programmers

by missingthepoint (Friar)
on Sep 03, 2008 at 02:07 UTC ( [id://708659] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Inline::C demonstration for C programmers
in thread Inline::C demonstration for C programmers

If the DLL is unloaded, then doesn't the pointer become invalid?

Yep, at least on my OS. In abstract terms, the virtual memory mapping for that DLL is removed when it's unloaded, and any pointers to memory in the range corresponding to that DLL's mapping are now junk.

That still wouldn't be a problem here...

I'll take your word for it, since I have to. My perl internals knowledge is pretty much 0. :) However, if I've actually misused Inline::C I'd be happy for someone to point it out.


email: perl -e 'print reverse map { chr( ord($_)-1 ) } split //, "\x0bufo/hojsfufqAofc";'
  • Comment on Re^4: Inline::C demonstration for C programmers