Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

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.