Thanks for the replies. Unfortunately, after trying both suggestions on using braces, running the compiled file still crashes.

Code:
ifstream infile001 ("Source1.xxx", ifstream::binary);
ofstream outfile001 ("001.yyy", ofstream::binary);
infile001.seekg(0x2a00000);
{
      char buffer001[15000];
      infile001.read (buffer001,15000);
      outfile001.write (buffer001,15000);
}
outfile001.close();
infile001.close();
Code:
{
ifstream infile001 ("Source1.xxx", ifstream::binary);
ofstream outfile001 ("001.yyy", ofstream::binary);
infile001.seekg(0x2a00000);
char buffer001[15000];
infile001.read (buffer001,15000);
outfile001.write (buffer001,15000);
outfile001.close();
infile001.close();
}
Like before, the compiled file crashes immediately. I don't think it executes any of the extraction since the pause I added previously didn't seem to get executed since it crashed before it paused. Any other thoughts on what could cause a crash beforehand?