From: <ng...@at...> - 2022-03-04 16:43:00
|
Please ignore my question. My code was emitting an exception whenever a message passed to `printfcn` in sharedspice.h started with "stderr". This left the library in an undefined state, so of course subsequent calls lead to instability... On 03/03/2022 12:52, ng...@at... wrote: > 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 |