Jump to content
The simFlight Network Forums

problem with pause


W4rl0ck

Recommended Posts

Hi,

I have a problem with reading / writing pause, and it also happens in the example app.

On the Page BC004 Writing to offset I can enable disable the pause in FS X .. but if I press p in the simulator it enables the pause and instantly disables the pause again.

it works when I go to a different page in the example app.

I guess the problem is that `FSUIPCConnection.Process();` writes the "disable pause" offset on every call when it's defined and since it's write only it does not take the simulator state into consideration

Bastian

Link to comment
Share on other sites

Hi Bastian,

This is a bug in the sample application. The pause should not be declared as write-only. It works fine if you take that out.

In your own application you can make it a normal read/write offset. Or if you just want to control the pause you can make it write-only, but you should put it in a group so you can process() it only when you need to send the pause state.

I'll fix the problem in the next version of the example code application.

Paul

Link to comment
Share on other sites

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.