예제 #1
0
        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);
        }
예제 #2
0
		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;
		}