public static void GetCommandName(Int64 ix, int id, [In, Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder commandName)
{
try
{
lock (getInstance(ix).syncLock)
{
if (getInstance(ix).commandRequests[id].CommandWaiting)
{
commandName.Append(getInstance(ix).commandRequests[id].Command.ToString());
}
else
{
LOG.Error(Error.ERROR_NO_COMMAND.ToString());
commandName.Append(Error.ERROR_NO_COMMAND.ToString());
}
}
}
catch (Exception e)
{
LOG.Error(e);
}
}