public static bool UserErrorFunc(int ulErrorCode, string cpErrorMsg, string cpExtraInfo, int ulCardinal) { VistaDBErrorStruct error = new VistaDBErrorStruct(); error.errorCode = (VistaDBErrorCodes)ulErrorCode; error.errorMsg = cpErrorMsg; error.extraInfo = cpExtraInfo; lock (queue.SyncRoot) { queue.Enqueue(error); } return(true); }
public static bool UserErrorFunc( int ulErrorCode, string cpErrorMsg, string cpExtraInfo, int ulCardinal ) { VistaDBErrorStruct error = new VistaDBErrorStruct(); error.errorCode = (VistaDBErrorCodes)ulErrorCode; error.errorMsg = cpErrorMsg; error.extraInfo = cpExtraInfo; lock(queue.SyncRoot) { queue.Enqueue(error); } return true; }