CodeGuard error using streams


2005-12-19 09:21:03 PM
cppbuilder113
Hi
I have BDS2006 with the update 1 installed.
If I turn all CodeGaurd options on then get an error when the function
test() is called.
I get the error:
Bad parameter in process: Project1.exe(2776) -
c:\programmer\borland\bds\4.0\include\dinkumware\fstream#67
Can anyone tell me why?
Without CodeGaurd then everthing runs and works as intended.
Regards
Lars Christensen
The code example:
#include <fstream>
void test()
{
std::ofstream out("test.txt");
out << "Test" << std::endl;
}