New GPC beta: gpc-971001_(re)

Wed, 8 Oct 1997 12:17:23 +0100 (BST)


On Wed, 08 Oct 1997 11:58:25 -0700 Maurice Lombardi 
 wrote:
>Peter Gerwinski wrote:
>> Frank has tracked down this error to the following:
>> :
>> : unit system;
>> : interface
>> : implementation
>> :
>> : var junk:integer;
>> :
>> : to begin do
>> :   for junk := 1 to 1 do;
>> :
>> : end.
>
>There is another error in this initialization part (which presumably has
>nothing to do with the crash of the compiler).
>The variable ppJunk is New'ed, used to fill CmdLine, which is a pointer
>of pChar type, Then Dispose'd. So the memory to which CmdLine points is
>reputted into the heap, and can be overwrited by subsequent instructions
>in the main program.

Oops! I will correct this in the next release of bpcompat, either by
disposing of ppJunk in the finalisation part of the unit, or by doing
something else!

Thanks for the report!

Best regards, The Chief
Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant)
Author of:  Chief's Installer Pro v4.01 for Win16 and Win32.
Homepage:  http://ourworld.compuserve.com/homepages/African_Chief/
E-mail: laa12@keele.ac.uk



The African Chief (laa12@cc.keele.ac.uk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es