Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello guys,

while working on a C# app I've been writing for some time, I encountered what seems to be a weird bug: when I use:

var now = DateTime.UtcNow;
FSUIPCConnection.UTCDateTime = now.AddMinutes(1);
FSUIPCConnection.Process()

I get:

An exception of type 'System.Exception' occurred in fsuipcClient.dll but was not handled in user code
Group '' does not exist.

This is after I've already established FSUIPCConnection.Open, and I have in fact passed some other changes to offset groups (set flaps, etc.). Weirdly enough, the time setting in the simulator does change, but this exception for some reason still does occur.

I've found some occurences of these in the forum, seems like they discuss initializing offsets (which in my case are long since initialized); any help would be appreciated.

Posted

Hi,

When you set the UTCDateTime property you don't need to call Process(). The process is done for you by the DLL when it sends the new date/time to FSUIPC.

I think what's happening is that you have not declared any offsets without using a group name. Process() by itself processes offsets that were not declared in a group, but you don't have any, so it throws an error.

All you need to do is take out your Process() call.

Paul

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.