Esempio n. 1
0
        private void updateLog()
        {
            uint numNewLogs = NativeFunctions.GetLogBufferLen();

            //IntPtr temp = Marshal.AllocCoTaskMem(2048);
            for (uint i = 0; i < numNewLogs; ++i)
            {
                logElems.Add(new LogElement(NativeFunctions.GetLogMsg(i), (LogVerbosity)NativeFunctions.GetLogMsgVerbosity(i)));
            }
            //Marshal.FreeCoTaskMem(temp);
            NativeFunctions.ClearLogBuffer();
            //LogList.View.
            NotifyPropertyChanged("LogElements");
        }