Ejemplo n.º 1
0
 private static void on_error(IntPtr s, my_basic.mb_error_e e, string m, string f, int p, ushort row, ushort col, int abort_code)
 {
     lock (dataLock)
     {
         if (e != my_basic.mb_error_e.SE_NO_ERR)
         {
             string full = null;
             if (f != null)
             {
                 if (e == my_basic.mb_error_e.SE_RN_WRONG_FUNCTION_REACHED)
                 {
                     full = string.Format("ERROR\n  Ln {0}, Func: {1}, Msg: {2}.\n", row, f, m);
                 }
                 else
                 {
                     full = string.Format("ERROR\n  Ln {0}, File: {1}, Msg: {2}.\n", row, f, m);
                 }
             }
             else
             {
                 full = string.Format("ERROR\n  Ln {0}, Msg: {1}.\n", row, m);
             }
             error = new Error(s, e, m, f, p, row, col, abort_code, full);
         }
     }
 }
Ejemplo n.º 2
0
 public Error(IntPtr _s, my_basic.mb_error_e _e, string _m, string _f, int _p, ushort _row, ushort _col, int _abort_code, string _full)
 {
     s          = _s;
     e          = _e;
     m          = _m;
     f          = _f;
     p          = _p;
     row        = _row;
     col        = _col;
     abort_code = _abort_code;
     full       = _full;
 }