Пример #1
0
        public DumpEvent(DumpFile file,
            uint id, DumpEventType type, DateTime timestamp, string processName, uint processId, uint threadId,
            long dataOffset, int dataLength)
        {
            this.file = file;

            this.id = id;
            this.type = type;
            this.timestamp = timestamp;
            this.processName = processName;
            this.processId = processId;
            this.threadId = threadId;

            this.dataOffset = dataOffset;
            this.dataLength = dataLength;
        }
Пример #2
0
        public DumpEvent(DumpFile file,
                         uint id, DumpEventType type, DateTime timestamp, string processName, uint processId, uint threadId,
                         long dataOffset, int dataLength)
        {
            this.file = file;

            this.id          = id;
            this.type        = type;
            this.timestamp   = timestamp;
            this.processName = processName;
            this.processId   = processId;
            this.threadId    = threadId;

            this.dataOffset = dataOffset;
            this.dataLength = dataLength;
        }
Пример #3
0
        private void OpenFile(object param)
        {
            IProgressFeedback progress = param as IProgressFeedback;

            Capture.DumpFile df = new Capture.DumpFile();
            df.Load(openFileDialog.FileName, progress);

            foreach (DumpEvent ev in df.Events.Values)
            {
                DataRow row = dataSet.Tables[0].NewRow();
                row[eventCol] = ev;
                row.AcceptChanges();
                dataSet.Tables[0].Rows.Add(row);
            }

            dataSet.Tables[0].EndLoadData();

            progress.ProgressUpdate("Opened", 100);

            progress.ProgressUpdate("Finishing", 100);
            Invoke(new ThreadStart(RestoreDataSource));

            progress.OperationComplete();

            #if false
            IProgressFeedback progress = param as IProgressFeedback;

            FileStream fs = new FileStream(openFileDialog.FileName, FileMode.Open);
            BZip2InputStream stream = new BZip2InputStream(fs);

            dataSet.ReadXml(stream);

            stream.Close();
            fs.Close();

            dataSet.Tables[0].EndLoadData();

            progress.ProgressUpdate("Opened", 100);

            AnalyzePackets(progress);

            progress.ProgressUpdate("Finishing", 100);
            Invoke(new ThreadStart(RestoreDataSource));

            progress.OperationComplete();
            #endif
        }