Charlie Savage wrote:
Traceback - sure. Make sure your version of libxml-ruby and libxml
are compiled with debug information. Then enable crash dumps on your
linux box. When you see a crash, inspect the crash dump.
Alternatively, run your rails app under gdb (or attach to it with
gdb) and set it up to break on an exception.
Thanks, will do that next time.
FYI - most likely situation is you are using document.find to get an
xpath object. Then the xpath object is being freed after the
document. To fix that for now:
results = document.find('/')
...
results = nil
GC.start
I see, but why is that needed? Are you using some global variables to
keep track of things?
Also, it would be cool if one could do something like
document.find('/') { |node|
...
}
With everything freeing and closed after all is done.
By the way, I'd like to say that what you guys are doing is very cool
and most useful.
Thanks for all the work. Can't wait for version 1.0
--
Dmitri Priimak
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel