From: <ng...@at...> - 2022-03-03 12:12:27
|
Hi ngspice users/developers, I'm encountering fatal errors when using ngspice as a shared library in certain circumstances, such as when a netlist doesn't contain an ".end" statement. One error message is "Error: ngspice.dll cannot recover and awaits to be detached", which is emitted by sharedspice.c. It seems that the program becomes unrecoverable/unstable upon such an error, even after issuing "destroy all", "reset", etc. I can work around it by reloading the DLL at runtime, but for packaging reasons I'd prefer to link ngspice at compile time. Is there a function accessible from sharedspice.h that resets everything back to its default state that would work after such an error? Cheers, Sean |