delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/14/21:00:28

Message-ID: <3DFBDB02.E2DCD4E8@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem with malloc and free
References: <ateunh$mv3$1 AT news DOT online DOT de> <atf1n7$o7e$1 AT news DOT online DOT de> <3DFB46EA DOT 6D583E8E AT yahoo DOT com> <4098-Sun15Dec2002000605+0200-eliz AT is DOT elta DOT co DOT il>
Lines: 38
Date: Sun, 15 Dec 2002 01:59:18 GMT
NNTP-Posting-Host: 12.90.170.39
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1039917558 12.90.170.39 (Sun, 15 Dec 2002 01:59:18 GMT)
NNTP-Posting-Date: Sun, 15 Dec 2002 01:59:18 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
> > Newsgroups: comp.os.msdos.djgpp
> > Date: Sat, 14 Dec 2002 15:09:24 GMT
> > >
> > > C:\Programme\djgpp\projects>a
> >      ^^^^^^^^^
> > > Exiting due to signal SIGSEGV
> > > General Protection Fault at eip=00003180
> > > eax=00000000 ebx=000084f9 ecx=00000000 edx=76202000 esi=00000054 edi=000656c4
> > > ebp=000e5668 esp=000e5630 program=C:\PROGRA~1\DJGPP\PROJECTS\A.EXE
> >                                        ^^^^^^^^
> > What is this?  Indication of some filename setup mixup, or
> > installation under the ridiculous Windoze "\Program files\"
> > directory, etc.
> 
> When a DOS program is invoked on Windows, Windows replaces the long
> name of every directory in its path with the short 8+3 alias, and
> that's what the program gets in its argv[0].  The DJGPP crash message
> uses argv[0] to print the program's name, thus the horribly ugly file
> name above.  (We could convert that to the original long name, but the
> code to do that is non-trivial, and thus it was deemed unwise to run
> it when the program has crashed and its core data structures might be
> corrupted.)

What I was pointing out was that the PROGRA~1 directory usually
pre-exists on every windows machine, because the Microsloth
installation makes it out of the 'program files' directory.  I
think the OP thinks he is operating under some 'programme'
directory, and he probably isn't.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


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