What is wrong in the next macro ?

From: Yuri A. Belikov (belikov@sunhe.jinr.ru)
Date: Wed Jun 25 1997 - 14:03:23 MEST


Dear colleagues !
What is wrong in the next macro :

#include <iostream.h>
#include <fstream.h>

void crash() {
  ifstream file("_name_of_any_existent_file_");
}

When I try to execute it, "root" is aborted.
In more general case when an object of the ifstream class is created, I
can read correctly the file, but always when ~ifstream() is called,
"root" die... 
                                            Thank you.
                                                      Y.Belikov



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET