delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/22/11:00:20

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "'Raf256' Rafal Maj" <raf256 AT szybkapoczta DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: local ifstream
Date: 22 Jan 2002 15:45:35 GMT
Organization: aa
Lines: 32
Sender: raf256 AT poczta DOT onet DOT pl@chello062179025129.chello.pl
Message-ID: <Xns919EAB4B152EFrfdfciasdsdj412tr@213.180.128.20>
NNTP-Posting-Host: chello062179025129.chello.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1011714335 22504 62.179.25.129 (22 Jan 2002 15:45:35 GMT)
X-Complaints-To: abuse AT onet DOT pl
NNTP-Posting-Date: 22 Jan 2002 15:45:35 GMT
User-Agent: Xnews/4.11.09
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

imho quite strange error :

/* function */
{
  if (echo) cout<<cmd<<endl;
  Parse(cmd); // przetworzenie komendy -> mCmd, mArg
  if (0) {
    ifstream plik;
  }
}

gives error (255, Acces vilation) after exit, removing line 
ifstream plik 
(with is never used) repairs this error. All other code in program is OK.

i'm using :

Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.02/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR -
-disab
le-nls
Thread model: single
gcc version 3.0.2


-- 
Raf256
,--, _  ,-   _  _  _
|,-'`_|_|_  `_||_'|_' raf256 AT wp DOT pl GG-1175498 ICQ-143712878
| `\|_| |   |_,,_||_| 
C++; (_2b||!_2b)?this->is->a:question; {B.Stroustrup, W.Shakespeare}

- Raw text -


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