www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/17/14:18:44

From: "Seyil Yoon" <wings AT interlog DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Clobbering PATH
Date: Tue, 16 Nov 1999 15:48:15 -0500
Organization: Data Recovery Labs
Lines: 40
Message-ID: <80sg98$jfb$1@news.cpol.com>
NNTP-Posting-Host: host26.datarec.com
X-Trace: news.cpol.com 942785640 19947 206.186.25.156 (16 Nov 1999 20:54:00 GMT)
X-Complaints-To: abuse AT cpol DOT com
NNTP-Posting-Date: 16 Nov 1999 20:54:00 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Here's the problem I'm having. I'm not entirely sure what the cause is
so I'll describe the problem first, then give some insights
into what I think might be potential areas to look at.

Whenever I run some of my programs on a DOS system, it clobbers the
PATH environment setting. What it does, specifically, is clobber the
'A' in PATH. Hence, when I run a c:\>set command, I'll see something
like:

P
TH=c:\dos;c:\djgpp\bin

If I do a c:\>set path=%th%, I'll get

P
TH=c:\dos;c:\djgpp\bin
PATH=c:\dos;c:\djgpp\bin

Then, if I run the program again, I have no more problems.

Now, my programs call interrupts (specifically, int 13h interrupts),
and hence obtain low memory. This is probably where the problems
are originating from, but aside from the problem I just described
above, everything else seems fine. The program works well,
nothing else is clobbered. I usually allocate a chunk of low memory
at the outset then release it at the end, but I've also tried doing
it where I allocate and release it whenever needed.

Any thoughts? Thanks in advance.

=================================================================
Seyil Yoon (wings AT datarec DOT com)
Research Programmer, Data Recovery Labs (http://www.datarec.com)
---
"If I fed my dog a set of Scrabble tiles he could have
crapped a better manual." - T. Liam McDonald
---
Do NOT subscribe to Rogers AT Home (http://www.members.home.com/badservice/)


- Raw text -


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