kingm56 Posted July 18, 2021 Report Posted July 18, 2021 Good day, Mr Dowson. When trying to access the WAPID.dll via C# application, the appliction crashes with the error below. I believe this is an access error; howerver, I'd be grateful for your opinion private void Dashboard_Load(object sender, EventArgs e) { try { vs.OnVariablesReadyChanged += VS_OnVariablesReadyChanged; vs.Init(this.Handle); vs.LVARUpdateFrequency = 10; // Get new lvar values 10 times per second (Hz) vs.Start(); } catch (Exception) { } } private void VS_OnVariablesReadyChanged(object sender, EventArgs e) { try { if (vs.VariablesReady) { Forms.Main.AppendMsgCtrText(Environment.NewLine + "WASM Module Started", Color.PaleGreen, true); } else { Forms.Main.AppendMsgCtrText(Environment.NewLine + "WASM Module Stopped", Color.Orange, true); } } catch (Exception) { } } Error Faulting module name: FSUIPC_WAPID.dll, version: 0.0.0.0, time stamp: 0x60e59e60 Exception code: 0xc0000005 Fault offset: 0x000000000000722c Faulting process id: 0x40d4 Faulting application start time: 0x01d77c0232fdc7ce
John Dowson Posted July 19, 2021 Report Posted July 19, 2021 I'm sorry but I can't really support C#. If using C# and the WAPID.dll you should try with Paul Henty's dll for .NET (if not using already) which is also compatible with the WAPID - see Paul may also be able to help with FSUIPC access via C# if you post in his sub-forum: https://forum.simflight.com/forum/167-fsuipc-client-dll-for-net/ John
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