ariking777 Posted Sunday at 09:46 AM Report Posted Sunday at 09:46 AM 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.
Paul Henty Posted Sunday at 11:44 AM Report Posted Sunday at 11:44 AM 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
ariking777 Posted Sunday at 01:39 PM Author Report Posted Sunday at 01:39 PM Thanks a lot, as ridiculous as that was, that fixed the problem 🙂
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now