🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #325

Re: Debugging advice

#325
From: Hamish Seaton
Date: Thu, 22 Apr 1999 00:00
41 lines
2720 bytes
Could you explain why running say xtree before the my program "fixes" this
problem?  Would xtree be leaving some instructions behind in memory that my
program is now pointing to, or would my program be allocated a different
block of memory which now makes the pointer valid?  Can't understand why
there seems to be a dependency.

Hamish

Pedt Scragg wrote:

> Hamish Seaton [mailto:love_shack@caverock.net.nz] decided to regale us
> with
> >I've been asked to try and get a rather large and extensively modified
> >Turbo Pascal (DOS) program running properly.  It's been locking up
> >completely when the program is exited, BUT by doing one of the following
> >I can get it to exit happily:
> >
> >1. run xtree gold before the program is run
> >2. don't process the system registry on bootup (F8 on startup then
> >choose step-by-step and N to process the reg).
> >
> >Doing either of these enables the program to run and exited reliably
> >until the PC is next rebooted.  I can also
> >
> >3. set BootGUI=0 in msdos.sys so PC boots into DOS
> >
> >To confuse things further, there are 3 slightly different versions of
> >the program, one of which exited OK without any of the above mods, but
> >now locks up with the BootGUI=0 setting, while the other two are now OK.
> >
> >Any hints as to what I should look for in the program, methods or tools
> >for debugging.  It's quite a large app, with some 114 files, ISR's etc.
> >
> Sounds likely that, as you are using ISR's, one of the original vectors
> is not being restored when the program terminates or, if you are
> restoring each Interrupt Vector, then a memory overwrite has trashed the
> pointer.
>
> --
> Pedt
> Kellemes Karacsonyi Unnepeket (I'm getting in early for y2k)
Technical Details
Message-ID: <371FB1B8.9AAA3F68@caverock.net.nz>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371F0E9F.FB3F927B@caverock.net.nz> <aVS6eDAUI3H3YwWC@pedt.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111659,327bda8f5ce334a
X-Google-Attributes: gid111659,public
X-Google-Thread: 108ebd,327bda8f5ce334a
X-Google-Attributes: gid108ebd,public
From: Hamish Seaton <love_shack@caverock.net.nz>
Subject: Re: Debugging advice
Date: 1999/04/22
Message-ID: <371FB1B8.9AAA3F68@caverock.net.nz>
X-Deja-AN: 469763479
Cache-Post-Path: brutus.caverock.co.nz!unknown@tc1-22.caverock.net.nz
Content-Transfer-Encoding: 7bit
References: <371F0E9F.FB3F927B@caverock.net.nz> <aVS6eDAUI3H3YwWC@pedt.demon.co.uk>
Content-Type: text/plain; charset=us-ascii
X-Trace: newscene.newscene.com 924824721 202.37.100.24 (Thu, 22 Apr 1999 18:45:21 CDT)
Organization: Cave Rock Internet (http://www.caverock.net.nz)
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 22 Apr 1999 18:45:21 CDT
Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal