Re: [opensc-devel] Memory management across the DLLs boundaries

2007-09-27 Thread Martin Paljak
FYI, the software distributed in Estonia already combines all code into opensc.dll for 2 or so years (windows build only). I personally never understood the need to have two separate libraries. I believe this requirement is not justified any more these days and it would be better to have a si

Re: [opensc-devel] Memory management across the DLLs boundaries

2007-09-27 Thread Andreas Jellinghaus
On Monday 24 September 2007 16:05:14 Viktor TARASOV wrote: > The crash occurs when, inside the opensc.dll, trying to free the memory, > that was allocated inside the pkc15init.dll . > (It happens when calling sc_pkcs15init_unbind() and sc_pkcs15_unbind().) > > Crash can be avoided if, in pkcs15ini

[opensc-devel] Memory management across the DLLs boundaries

2007-09-25 Thread Viktor TARASOV
Hi, my XPCOM module uses both 'pkcs15init' and 'opensc' DLLs. The crash occurs when, inside the opensc.dll, trying to free the memory, that was allocated inside the pkc15init.dll . (It happens when calling sc_pkcs15init_unbind() and sc_pkcs15_unbind().) Crash can be avoided if, in pkcs15init.dl