[commit] r1409 - trunk/GME/Parser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Jul 18 17:52:15 CDT 2011
Author: ksmyth
Date: Mon Jul 18 17:52:14 2011
New Revision: 1409
Log:
AnalyzeXML takes almost no time, dont pop up a window for it. Dont rely on WCHAR overflow
Modified:
trunk/GME/Parser/MgaParser.cpp
Modified: trunk/GME/Parser/MgaParser.cpp
==============================================================================
--- trunk/GME/Parser/MgaParser.cpp Mon Jul 18 16:34:35 2011 (r1408)
+++ trunk/GME/Parser/MgaParser.cpp Mon Jul 18 17:52:14 2011 (r1409)
@@ -306,10 +306,6 @@
try
{
CloseAll();
- COMTHROW( progress.CoCreateInstance(L"Mga.MgaProgressDlg") );
- COMTHROW( progress->SetTitle(_bstr_t(L"Analyzing XML file...")) );
- COMTHROW( progress->StartProgressDialog(NULL) );
-
CopyTo(filename, xmlfile);
@@ -416,7 +412,6 @@
// ------- Passes
TCHAR progress_msg[512];
-TCHAR refresh_counter;
void CMgaParser::startElement(const XMLCh* const name, AttributeList& attributes)
{
@@ -424,7 +419,7 @@
++counter;
- if( ++refresh_counter == 0 )
+ if( counter % 2000 == 0 )
{
_stprintf_s(progress_msg, _T("Phase: %d, number of parsed objects: %ld"), pass_count, (long)counter/2);
COMTHROW( progress->SetLine(0, PutInBstr(progress_msg)) );
More information about the gme-commit
mailing list