tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-core
headius has quit [Quit: headius]
tenderlove has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-core
nokada has joined #ruby-core
nokada_ has quit [Ping timeout: 255 seconds]
n0kada has joined #ruby-core
nokada_ has joined #ruby-core
nokada has quit [Read error: Connection reset by peer]
dostoyevsky has joined #ruby-core
<dostoyevsky>
Can I call Data_Wrap_Struct repeatedly to reset a pointer? I store a database handle via Data_Wrap_Struct and when I close the handle, I want to delete the reference to it...
nurse has joined #ruby-core
kosaki8 has quit [Ping timeout: 240 seconds]
kosaki8 has joined #ruby-core
rafaelfranca has quit [Ping timeout: 272 seconds]
rafaelfranca has joined #ruby-core
carlosantonio has joined #ruby-core
kosaki8 has quit [Ping timeout: 240 seconds]
ddd has joined #ruby-core
rafaelfranca has quit [Ping timeout: 264 seconds]
rafaelfranca has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
<drbrain>
dostoyevsky: you should overwrite the pointer
<drbrain>
see README.EXT
<drbrain>
dostoyevsky: Data_Wrap_Struct allocates a new ruby object
<drbrain>
I assume you have your free function set up to close and deallocate the handle already
<drbrain>
dostoyevsky: but if you manually close it you can set the pointer to NULL and then check it from your free function so you don't attempt to close and deallocate NULL