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