Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Gooday Pete....Is there any way I can get SimBoards to actually close. I have everything working great in the Wideclients, but the only one that I am not able to shutdown is Simboards. It will stop the program but when I re-start the flight sim, all programs re-start, and Simboards then starts up a second program.Here is the ini file:

[Config]

ButtonScanInterval=20

ClassInstance=0

NetworkTiming=5,1

MailslotTiming=2000,1000

PollInterval=2000

Port=8002

Port2=9002

ResponseTime=18

ApplicationDelay=0

TCPcoalesce=No

WaitForNewData=500

MaxSendQ=100

OnMaxSendQ=Log

NewSendScanTime=50

Priority=3,1,2

Window=379,455,593,489

[user]

RunReady1=C:\Program Files\IOCards\iocard.exe

CloseReady1=Yes

DelayReady1=50

RunReady2=C:\Program Files\SIM-board Universal Controller\SIMboards.exe

CloseReady2=Yes

AllowShutdown=App

Any thoughts.........Kind regards...........Brian W.

Posted
... the only one that I am not able to shutdown is Simboards. It will stop the program but when I re-start the flight sim, all programs re-start, and Simboards then starts up a second program.

...

RunReady2=C:\Program Files\SIM-board Universal Controller\SIMboards.exe

CloseReady2=Yes

AllowShutdown=App

All that WideClient does (can do, really) is send a "WM_CLOSE" message to the top-level Window associated with that process. i.e. SIMboards.EXE. That's normally exactly the same as you clicking the X close button on the window's title bar.

Does the program close down properly if you do that manually?

You might need to ask the folks who make that program what is going on. I don't know it all all I'm afraid.

BTW Do try the very latest WideClient version from the Other Downloads announcement above, just in case. I did make some changes to cope with programs needing to vbe closed before computer shutdown. I don't see how that can help in this case, because effectively all that means is sending them a WM_CLOSE a few seconds before asking Windows to shutdown the system.

If there's no alternative I might be able to offer a "Terminate Forcibly" option in WideClient -- that's pretty drastic, not allowing any tidy up action in the target program. It's the same as going into the Windows Task Manager, finding the process, and killing it there.

Regards

Pete

Posted
Thanks Pete, yes it closes ok with the X button, but I suspect as you say it will be a problem for the authors.

Nevertheless, I'll look to see how easy it is to add a forceful "KILL" option to WideClient.

Regards

Pete

Posted
Is there any way I can get SimBoards to actually close. I have everything working great in the Wideclients, but the only one that I am not able to shutdown is Simboards.

Okay. It was easy to do, so I added a forceful close facility to WideClient. It is in version 6.759 which you can download from either the FSX or Other Downloads announcement above.

Try it and let me know. You have to change your "CloseReady2=Yes" to "CloseReady2=Kill". Note that this is a drastic process termination, so the program being terminated is literally murdered at whatever step it has reached. If it is driving hardware take care that it doesn't leave the hardware in an odd state.

Regards

Pete

Posted

Thanks Pete, I will try it this morning. Perhaps I could use the CloseReady as well, so that it shuts the program off first and then Kill it !! Sounds nice and drastic !!

Will report back.....cheers. ......Brian W

Posted
Thanks Pete, I will try it this morning. Perhaps I could use the CloseReady as well, so that it shuts the program off first and then Kill it

sorry, what do you mean "Perhaps I could use the CloseReady as well"? As well as what? You can either do CloseReadyN=Yes, or CloseReadyN=Kill. If you put two parameters in with the same name Windows only sees one. Not even sure which!

And there's no good my program sending a "Close" message if I'm immediately going to murder it, as it will never see the Close message then in the first place.

Pete

Posted

Well done Pete. It works perfectly, just with the kill switch. I was thinking that if I could use both so that the program was stopped before it was killed !

Congratulations, you have done it again. Many thanks.

Kind regards............Brian W.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.