Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] weird ifstream behavior


Chronological Thread 
  • From: Aaron Knoll <knolla@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [MANTA] weird ifstream behavior
  • Date: Wed, 17 May 2006 21:51:46 -0600

Only on the mactel (not on the linux build), I get odd behavior when I try to read using ifstream on plain text files. If I just open the file (i.e. don't read in any variables) this corrupts memory:

ifstream in(filename);
in.close();

conversely, memory is uncorrupted if I don't do this.

The only difference I can think of: I created the text file on a Linux machine.

Anyone have issues like this before? If not, it's probably something silly I'm doing a few instructions before...

Thanks!

-Aaron





Archive powered by MHonArc 2.6.16.

Top of page