[commit] r1492 - trunk/GME/Parser
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Aug 31 23:03:32 CDT 2011
Author: ksmyth
Date: Wed Aug 31 23:03:32 2011
New Revision: 1492
Log:
Fix crash with analyzing
Modified:
trunk/GME/Parser/MgaParser.cpp
Modified: trunk/GME/Parser/MgaParser.cpp
==============================================================================
--- trunk/GME/Parser/MgaParser.cpp Wed Aug 31 23:01:00 2011 (r1491)
+++ trunk/GME/Parser/MgaParser.cpp Wed Aug 31 23:03:32 2011 (r1492)
@@ -422,12 +422,14 @@
if( counter % 1000 == 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)) );
+ if (progress)
+ COMTHROW( progress->SetLine(0, PutInBstr(progress_msg)) );
if( pass_count == 1 )
max_counter = counter + 10000;
- COMTHROW( progress->SetProgress(counter, 0) );
+ if (progress)
+ COMTHROW( progress->SetProgress(counter, 0) );
}
if( skip_element_level > 0 )
More information about the gme-commit
mailing list