|
From: <ng...@at...> - 2022-03-08 08:22:32
|
Hi Holger,
> The command with the most extensive 'cleaning' capability is the 'quit'
> command.
>
> What about sending 'quit', ignoring the request to detach the dll and
> then move on (new initialization?) ?
That causes a segfault too. In the example I sent in the last email, I
added `ngSpice_Command("quit");` after the first run, and removed
`exit()` from `cb_exit`. Now it segfaults during the second
`ngSpice_Init`. Attached is an updated example.
Any idea what's happening now? I'm not experienced debugging C code.
Attaching the updated script in case it's useful.
> Why do you think, is it necessary to do more then 'remcirc' and 'destroy
> all' ?
I've had trouble when trying to that. I've not narrowed down what
exactly causes them, but I'm getting segfaults with that too. If I
discover more I'll email again. In the meantime I'm probably going to go
back to using ngspice as a shared runtime library to avoid all these
cleanup/reinit issues.
Cheers,
Sean
>
> Holger
>
>
> _______________________________________________
> Ngspice-bugs mailing list
> Ngs...@li...
> https://lists.sourceforge.net/lists/listinfo/ngspice-bugs |