FwFreak
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by FwFreak
-
-
Yes. For every 'action' my program opens a new instance of the "Simulator" class which contains the code above.
private void btn_simrate_2_Click(object sender, EventArgs e) { Simulator sim = new Simulator(); sim.SetSimrate(2); sim.Send(); }
My idea was to create the class instance, setup all things to send and then send it to the sim.
-
Yes, it is a write-only offset and already did it like your option 1.
This is my code which works for other offsets except the simrare (local time, pause sim, send text message).
Offset<short> simrate = new Offset<short>("simrate", 0x0C1A, true); (...) List<string> types = new List<string>(); (...) public void setSimrate(int val) { form1.write_log("Simulator", "Set -> Simrate: " + val); simrate.Value = (short)(val * 256); types.Add("simrate"); } public bool Send() { if(form1.monitor.status.connected) { foreach(string type in types) { try { form1.write_log("Simulator", "Start Send -> " + type); FSUIPCConnection.Process(0, type); } catch (FSUIPCException ex) { form1.write_log("Simulator", "Senden Fehler: " + ex.ToString()); } } }
(The part with the 'List' is not the best way I think but I'm not sure how to write more than one group in one process.)
-
Hi Paul!
First thanks for your great FSUIPCClient dll.
Yesterday I updated the NuGet package from 3.1.5 to 3.1.11. Since this update setting the Offset 0C1A for changing the Simulation Rate causes P3D to incease the RAM usage up to 100% till the PC runs out of memory.
The actual FSUIPC offset table says for Offset 0C1A "[Write] ]Not working, Sim Event seems broken" but with version 3.1.5 I can change the Simulation Rate without trouble (same FSUIPC version 5.15).
Have you changed something related between the dll versions or do you have any ideas how I can fix the issues?
Best regards
Karsten
Writing Simrate Offset crashes P3D (v4.5)
in FSUIPC Client DLL for .NET
Posted
Hi Paul!
Sorry for the delay but since yesterday evening I cannot reproduce the error any more.
Yesterday in the morning I've updated FSUIPC from 5.15 to 5.151 but I was sure that the error was still alive after the update.
FSUIPC log shows the offset is send once only.