ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/20/08:20:31

From: "Packard Bell" <Roger DOT Cazenave AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: SIGABRT error with seekg()
Date: 20 Apr 1999 12:52:17 GMT
Organization: Packard Bell
Lines: 21
Message-ID: <01be8b2c$0ee89ce0$02378aa4@default>
NNTP-Posting-Host: tntpau7-2.abo.wanadoo.fr
X-Trace: wanadoo.fr 924612737 26052 164.138.55.2 (20 Apr 1999 12:52:17 GMT)
X-Complaints-To: abuse AT wanadoo DOT fr
NNTP-Posting-Date: 20 Apr 1999 12:52:17 GMT
X-Newsreader: Microsoft Internet News 4.70.1161
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have no compilation error.
The error comes when I'm debugging with RHIDE. It's the same when I use
rdbuf()->seekoff().

Here is the source :
#include <fstream.h>

int main () {
	ifstream File;
	char c;	

	File.open("Data");  //an existing file
	cout << "Reading";
	c=File.get();
	File.seekg(ios::beg); //SIGABRT
	
	return 0;
}

	Thanx.
	Florian.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019