Article View: comp.lang.pascal.borland
Article #326Re: Debugging advice
From: Raimo Suonio
Date: Fri, 23 Apr 1999 00:00
Date: Fri, 23 Apr 1999 00:00
20 lines
1783 bytes
1783 bytes
Hamish Seaton kirjoitti viestiss๏ฟฝ <371FB1B8.9AAA3F68@caverock.net.nz>... >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. As Pedt Scragg said, a misused interrupt vector is a possible reason. But I would say that most probable reason is a pointer to a datastructure which is used to reference a memory area before it is allocated and thus before the pointer has received an approppriate value. Running xtree happens to leave some non-locking values both for the pointer variable and the memory area it points. I have had such bugs made myself. You didn't tell whether you have the source code. If you have, search all pointer variables and follow there flow in program. Raimo Suonio raimo.suonio@qdlc.fi (remove spam preventing q)
Technical Details
Message-ID:
<7fol71$pmo$1@tron.sci.fi>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<371F0E9F.FB3F927B@caverock.net.nz> <aVS6eDAUI3H3YwWC@pedt.demon.co.uk> <371FB1B8.9AAA3F68@caverock.net.nz>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 108ebd,327bda8f5ce334a X-Google-Attributes: gid108ebd,public X-Google-Thread: 111659,327bda8f5ce334a X-Google-Attributes: gid111659,public From: "Raimo Suonio" <raimo.suonio@qdlc.fi> Subject: Re: Debugging advice Date: 1999/04/23 Message-ID: <7fol71$pmo$1@tron.sci.fi> X-Deja-AN: 469803034 Content-Transfer-Encoding: 8bit References: <371F0E9F.FB3F927B@caverock.net.nz> <aVS6eDAUI3H3YwWC@pedt.demon.co.uk> <371FB1B8.9AAA3F68@caverock.net.nz> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: SAUNALAHDEN SERVERIN asiakas Mime-Version: 1.0 Newsgroups: comp.lang.pascal.borland,borland.public.turbopascal