Dan,

If you have a second, could you fix the free/xfee issue (or I can do it once you are done, I just don't want to interfere with what you are doing).

The problem is that various structures in libxml are allocated with the macro ALLOC, which means the ruby executable is creating the memory. But the structures are then deallocated using free, which means the dll is trying to delete them. On windows this doesn't work since each dll likely has its own stack (depending on the runtime library it is using).

The solution is simple - use xfree (which is what you are supposed to use anyway for memory created via ALLOCA) and not free. There are about 10 to 15 instances of this in the current code base.

Thanks,

Charlie


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to