Skip to content

crash in cmd.InvokeOnce()....where is my error? RESOLVED #31

Description

@allucche

In My class i define:

private IXPlaneApi m_api = null;

In the constructor:
public xPlaneSerialCom(IXPlaneApi api)
{
m_api = api;
......
}

When I send cmnd to xPlane in this function the system crashes:

private void SendCMND(string cmndString,int actionInt)
{
IXPCommand cmd = null;
cmd = m_api.Commands.GetCommand(cmndString);

    switch (actionInt)
     {
            case BEGIN:
                cmd.Begin();
                break;
            case END:
                cmd.End();
                break;
            case ONCE:
                cmd.InvokeOnce();
                break;
      }

}

Where is my error?
Thank you very much!
Alessio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions