Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I'm using in wideclient.ini the AllowShutdown=App and it is not working all the time, not most of the time only the CDU is closed or only the wideclient.exe is closed, but the application continue running.

Here are my 2 log files, the first log is where the shutdown request is generated by the CDU, maybe you see something wrong:

********* WideClient.DLL Log [version 6.10] Class=FS98MAIN *********

Date (dmy): 31/08/03, Time 00:46:49.444: Client name is EICAS

110 Attempting to connect now

1042 Error on client pre-Connection Select() [Error=10061] Connection refused

1062 Ready to try connection again

1072 Attempting to connect now

8713 New Client Application: "cdu" (Id=828)

9083 New Client Application: "pfd" (Id=792)

9414 New Client Application: "PMSounds" (Id=816)

12759 READSTATEDATA received with bad data size!

12759 0 ReadLocal: Offset=10000, Size=0000

27991 WRITESTATEDATA received with bad data size!

27991 0 ReadLocal: Offset=10013DB4, Size=0000

39487 Connection made okay!

71483 Note: Send() request depth is over 100!

73306 send() done [81 bytes] after 19 retries, request depth is 168

173229 send() done [27 bytes] after 22 retries, request depth is 2257

183244 Shutdown request received!

183815 send() failed [0 bytes] after 40 retries, request depth is 2454

184596 Reception maximum achieved: 80 frames/sec, 9436 bytes/sec

184596 Reception average achieved whilst connected: 57 frames/sec, 6889 bytes/sec

184596 Max receive buffer = 30421, Max send depth = 2426

184596 ********* Log file closed (Buffers: MaxUsed 2251, Alloc 11629 Freed 11629 Refused 0) *********

********* WideClient.DLL Log [version 6.10] Class=FS98MAIN *********

Date (dmy): 30/08/03, Time 01:59:49.165: Client name is PFD

90 Attempting to connect now

1011 Error on client pre-Connection Select() [Error=10061] Connection refused

1021 Ready to try connection again

1061 Attempting to connect now

3455 New Client Application: "mcp747" (Id=1720)

7170 New Client Application: "pfd" (Id=1004)

9634 New Client Application: "MCP" (Id=1688)

45115 Connection made okay!

207378 Reception maximum achieved: 59 frames/sec, 9383 bytes/sec

207378 Reception average achieved whilst connected: 58 frames/sec, 7007 bytes/sec

207378 Max receive buffer = 918, Max send depth = 3

207378 ********* Log file closed (Buffers: MaxUsed 5, Alloc 29899 Freed 29899 Refused 0) *********

Thanks,

Ulisses

Posted

I'm using in wideclient.ini the AllowShutdown=App and it is not working all the time, not most of the time only the CDU is closed or only the wideclient.exe is closed, but the application continue running.

Here are my 2 log files, the first log is where the shutdown request is generated by the CDU, maybe you see something wrong

No. If WideClient sees the shutdown it closes any applications in its close list -- it works best only for those it loaded itself too. I don't know how you are starting the apps because you don't show your INI file.

If WideClient is not closing, then it is not seeing the close down signal in WideServer. This is simply a value written to a location in FSUIPC offsets. Possibly you are closing down FS before this has had a chance? Best to close down FS using the WideServer shutdown facility and a WideServer hot Key (I use Ctrl+Shift+E). It works here every time, for all apps and WideClient.

Regards,

Pete

Posted

[Config]

UseTCPIP=yes

serverIPAddr=192.168.1.2

Port=8002

Window=163,63,568,76

Visible=Yes

; -----------------------------------------------

[user]

Log=Errors+

AllowShutdown=App

Run1=C:\PMSounds\PMSounds.exe

Run2=C:\CDU\cdu.exe

Run3=C:\PFD\pfd.exe

Close3=yes

Close2=yes

Close1=yes

; ===============================================

[Config]

UseTCPIP=yes

serverIPAddr=192.168.1.2

Port=8002

Window=123,82,800,110

Visible=Yes

; -----------------------------------------------

[user]

Log=Errors+

AllowShutdown=App

Run1=C:\Aerosoft MCP747\mcp747.exe

Run2=C:\MCP\MCP.exe

Run3=C:\PFD\pfd.exe

Close3=yes

Close2=yes

Close1=yes

FS is always running, I only start wideclient.exe and all applications start fine. I'll try the Ctrl+Shift+E

Is there a way to start all clients when starting FS ???

Thanks,

Ulisses

Posted

FS is always running, I only start wideclient.exe and all applications start fine.

So how are you invoking the ShutDown? I don't understand.

Is there a way to start all clients when starting FS ???

If you have WideClient running in all the clients, then of course. You use the "RunReady" facilities.

If you mean can I start WideClient remotely from WideServer with no program running in the client PCs to see the request, no. How could I do that?

Why not use RunReady and put WideClient in your Windows "StartUp" folder so it starts when you boot. Make sure, in that case, that your FS PC is up and ready or it is likely that WideClient will fail to find the Server.

Pete

Posted

Ok,

Let's go slowly :)

- Where do I associate the Ctrl+Shift+E for shutdown FS and clients ???

- I'm invoking the shutdown via magenta CDU, with FS running of course.

- I'll try the RunReady, but I'm asking something like this in WideServer;

Run1=//client1/c/widefs/wideclient.exe

Run2=//client2/c/widefs/wideclient.exe

Can I add this in FSUIPC ??? Will it work ???

Thanks again,

Ulisses

Posted

- Where do I associate the Ctrl+Shift+E for shutdown FS and clients ???

As a hotkey defined in WideServer.ini. See the "ShutdowsHotKey" parameter. It is in the doc.

- I'm invoking the shutdown via magenta CDU, with FS running of course.

Well, that should work, provided the data it writes to invoke the shutdown is definitely written before it terminates locally.

- I'll try the RunReady, but I'm asking something like this in WideServer;

Run1=//client1/c/widefs/wideclient.exe

Run2=//client2/c/widefs/wideclient.exe

Uh? Doesn't that just go get the WideClient.exe's from the client PCs and run them in the FS PC? I didn't know you could make the CreateProcess function create a process in another PC! It certainly doesn't work here -- if I run a program from another PC is is brought over the link and runs in this PC, just very inefficiently as it gets its parts, data and so on from the other PC.

Anyway, that is nothing to do with RunReady, so I don't know why you mention them in the same sentence?

Pete

Posted

Hi again Pete,

I'm using the Shitdown hotkey in server, runready and closeready in clients and everything is very nice now.

I start FS, all magenta client start.

I press a button in GF that sends ctrl+shift+E and everything closes.

Really nice.... thanks for the runready tip !

Ulisses

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.