On Thu, Feb 27, 2025 at 01:31 PM, Jeff Kayzerman wrote:
What isn't working is when I try to run this process as a windows service. The python is running properly but kicking off LTspice results in this error code 3221226505 so I get an email saying "Simulation failed with status code 3221226505".
Presumably that is a Windows status code.? I think it did not come from LTspice, but it might mean Windows is telling you that LTspice did not exit happily.
?
Can you find what that error code means, if it's from Windows?
?
It's curious that the message states "Simulation failed ...".? Where did that word "Simulation" come from?
?
Did LTspice create a .LOG file?? What does it say?
?
Since there is no descriptive error message I have no idea why everything works fine when I run it while I'm logged in but it won't run as a background service. I need it to run as a background service because the server won't let a user stay logged in indefinitely.
I am unfamiliar with running programs in a Windows background service.? Is it possible that a background service does not "see" itself with a normal default directory?? Is it a mirror of the right directory, including all contents?? What about its environment variables?? Does it see the LTspice .ini file too?
?
I'm assuming that everything works now that you moved all the symbols (and models too?) into the same folder with the schematic, when run normally.? I think that is what you said.
?
Andy
?