-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash (null pointer) when calling functions without a valid solution #56
Comments
I noticed the Topology interface can also crash without a valid solution, while testing it to reply to this thread: https://sourceforge.net/p/electricdss/discussion/beginners/thread/9add05221d/ |
|
I haven't received any crash reports recently. v0.12 adds more error messages, let's see how it goes. |
I noticed some reports (DSS commands |
Many functions require a valid/initialized state or otherwise will crash. For example, any function that calls
cktelement.GetCurrents
should crash.This happens both in official COM and C-API, so it's not urgent.
We need to select the proper places to check this. Checking
ActiveCircuit.IsSolved
might be enough for the general circuit, checking ifcktelement.NodeRef
is not null seems enough for individual circuit elements.The text was updated successfully, but these errors were encountered: