S
SharpDog
I am running VC++ 6.0 w/ SP5 installed, MS W2K w/ SP4
installed on a standard IBM PC (256 MB RAM). Here is the
entire message (note that I don't have MSDN installed so I
cannot choose 'Technical Support' from the Help menu):
Compiling...
stl.cpp
c:\dev\test\stl\stl.cpp(6) : fatal error C1001: INTERNAL
COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on
the Visual C++
Help menu, or open the Technical Support help
file for more information
Error executing cl.exe.
Here is the (simplified) code reproducing this error:
// stl.cpp : Defines the entry point for the console
application.
//
#include <cstdlib>
#include <set>
using namespace std;
// Define a template class set of strings
typedef set<char *> Stringset;
//Define an iterator for template class set of string
typedef Stringset::iterator StringsetIt;
int main(int argc, char* argv[])
{
if ( argc > 2 ) {
char *pszSchedule = argv[ 1 ];
char *pszOutlet = argv[ 2 ];
Stringset
setControlNos;
StringsetIt
setControlNosItBeg, setControlNosIt,
setControlNosItEnd;
if (( pszSchedule ) && ( pszOutlet )) {
char pszNew[ 16 ] = { 0 };
pair prTest = { 0 };
strcpy( pszNew, pszSchedule );
strcat( pszNew, pszOutlet );
prTest = setControlNos.insert(
string( pszNew ) ); // returns true if insertion occurs
bFound = prTest.second;
//
... true if unique
}
{
setControlNosItBeg =
setControlNos.begin();
setControlNosItEnd =
setControlNos.end();
for ( setControlNosIt =
setControlNosItBeg ; setControlNosIt !=
setControlNosItEnd ; setControlNosIt ++ ) {
char *pStr = *
setControlNosIt;
if ( pStr ) delete pStr;
}
setControlNos.clear();
return ST_ST();
}
}
return 0;
}
installed on a standard IBM PC (256 MB RAM). Here is the
entire message (note that I don't have MSDN installed so I
cannot choose 'Technical Support' from the Help menu):
Compiling...
stl.cpp
c:\dev\test\stl\stl.cpp(6) : fatal error C1001: INTERNAL
COMPILER ERROR
(compiler file 'msc1.cpp', line 1794)
Please choose the Technical Support command on
the Visual C++
Help menu, or open the Technical Support help
file for more information
Error executing cl.exe.
Here is the (simplified) code reproducing this error:
// stl.cpp : Defines the entry point for the console
application.
//
#include <cstdlib>
#include <set>
using namespace std;
// Define a template class set of strings
typedef set<char *> Stringset;
//Define an iterator for template class set of string
typedef Stringset::iterator StringsetIt;
int main(int argc, char* argv[])
{
if ( argc > 2 ) {
char *pszSchedule = argv[ 1 ];
char *pszOutlet = argv[ 2 ];
Stringset
setControlNos;
StringsetIt
setControlNosItBeg, setControlNosIt,
setControlNosItEnd;
if (( pszSchedule ) && ( pszOutlet )) {
char pszNew[ 16 ] = { 0 };
pair prTest = { 0 };
strcpy( pszNew, pszSchedule );
strcat( pszNew, pszOutlet );
prTest = setControlNos.insert(
string( pszNew ) ); // returns true if insertion occurs
bFound = prTest.second;
//
... true if unique
}
{
setControlNosItBeg =
setControlNos.begin();
setControlNosItEnd =
setControlNos.end();
for ( setControlNosIt =
setControlNosItBeg ; setControlNosIt !=
setControlNosItEnd ; setControlNosIt ++ ) {
char *pStr = *
setControlNosIt;
if ( pStr ) delete pStr;
}
setControlNos.clear();
return ST_ST();
}
}
return 0;
}