home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 January
/
Chip_1999-01_cd.bin
/
zkuste
/
delphi
/
D
/
SNOOP420.ZIP
/
Snoop.int
< prev
Wrap
Text File
|
1998-07-25
|
935b
|
44 lines
//
// SNOOP v2.0 for Delphi 2 & 3
//
// Snoop out those memory leaks!
//
// Copyright 1997,1998 Robert R. Marsh, S.J. &
// the British Province of the Society of Jesus.
// All rights reserved.
//
// e-mail: rrm@sprynet.com
//
unit Snoop;
interface
uses
SysUtils;
type
ESnoopError = class(Exception);
ESnoopOutputError = class(ESnoopError);
ESnoopPointerError = class(ESnoopError);
ESnoopMapFileError = class(ESnoopError);
ESnoopListError = class(ESnoopError);
var
SnoopLogFile: string; // the file to log memory leaks to:
// the default is '<MapName>.SNP'
function Snooping: boolean; // is Snoop active ?
const
Off = false;
Onn = true;
procedure Switch(onoff: boolean); // switch Snoop on/off
procedure CheckForCorruption(onoff: boolean); //switch corruption checking
implementation
end.