Module initialization problem when using COM
Robin Boerdijk
robin.boerdijk at nl.origin-it.com
Mon May 24 07:59:11 EDT 1999
Bill Janssen <janssen at parc.xerox.com> wrote in message
news:UrFUybMB0KGWE_eBR4 at holmes.parc.xerox.com...
> The ILU module initialization doesn't do anything much. It only makes
> two calls into the ILU library itself, and both are minor calls that can
> be made indefinitely often. I wouldn't expect it to crash if it was
> called more than once, unless perhaps Python itself objects to calling
> things like Py_InitModule() more than once.
>
> Bill
Well, actually, the crash is caused by the
_ilu_Assert(theNoters[lang]==NULLFN, "SetNoter: already set");
assertion in ilu_SetNoter() in ILU2.0alpha13\runtime\kernel\object.c(57),
which is called from the initiluPr() initialization function of the iluPr
module. I'm quite happy with this assertion because the initiluPr() function
should really be called only once. This assertion caught a bug that is
probably somewhere outside of ILU, as I tried to demonstrate in my original
post. To me, this shows the quality of the ILU code: it even catches
external bugs (albeit at the price of crashing itself <wink>).
Robin
"Good software catches its own bugs. Excellent software also catches the
others."
More information about the Python-list
mailing list