Subj : application crashes when using ifstream To : borland.public.cpp.borlandcpp From : ofra Date : Mon Jan 17 2005 04:21 am Hello, All I use Builder C++ 6.0. I get an 'access violation' exception when running my application (release mode). My application contains only Form1 and a declaration of ifstream. I think I have a problem in my environment, as on another PC with Builder C++ 6.0 same application runs ok. maybe someone can help ? below is Unit1.cpp ---> #include #pragma hdrstop #include "Unit1.h" #include //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; std::ifstream newFile; //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } .