jondotdot
April 19th, 2003, 06:45 PM
Hi
I get the following message as I start to read data from a very large 25M ascii chars file.
First-chance exception in MyApp.exe: 0xC00000FD: Stack Overflow.
It seems to work on much smaller files.
code fragment is
if( In->Open( dialg->GetPathName(), CFile::modeRead ) )
{
// Temporary buffer.
// Get the input file size so we know when we're done reading.
nFilesize = In->GetLength();
// read a block of data 4000 chars
int nsize=ReadData();
// crashes on entry to this next routine
GetData(nsize);
}
any suggestions
thanks
I get the following message as I start to read data from a very large 25M ascii chars file.
First-chance exception in MyApp.exe: 0xC00000FD: Stack Overflow.
It seems to work on much smaller files.
code fragment is
if( In->Open( dialg->GetPathName(), CFile::modeRead ) )
{
// Temporary buffer.
// Get the input file size so we know when we're done reading.
nFilesize = In->GetLength();
// read a block of data 4000 chars
int nsize=ReadData();
// crashes on entry to this next routine
GetData(nsize);
}
any suggestions
thanks