New GPC beta: gpc-971001_(re)

Wed, 8 Oct 1997 20:19:36 +0200



Maurice Lombardi wrote:

> 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.

Unfortunately, there are similar bugs (at least) in the functions Str2PChar
(in System.pas) and Int2PChar (GPCUtil.pas). I hope they will be fixed in
the next release.

--
Frank Heckenbach, Erlangen, Germany
heckenb@mi.uni-erlangen.de
http://home.pages.de/~fjf/links.htm


Frank Heckenbach (heckenb@mi.uni-erlangen.de)

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