Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why DCC32 crashes ?

43 views
Skip to first unread message

Albert Zémour

unread,
Sep 20, 2000, 3:00:00 AM9/20/00
to
Hi,

I use the command line compiler with (very) long paths. I launch DCC32 using
a delphi program that looks like

function TForm1.ExecAndWait(FileName: String; Visibility: integer) :
LongWord;
var
zAppName: array[0..512] of char;
zCurDir: array[0..255] of char;
WorkDir: String;
StartupInfo: TStartupInfo;
ProcessInfo: TProcessInformation;
begin
StrPCopy(zAppName,FileName);
WorkDir := ExtractFilePath(Application.ExeName);
StrPCopy(zCurDir,WorkDir);
FillChar(StartupInfo,Sizeof(StartupInfo),#0);
StartupInfo.cb := Sizeof(StartupInfo);
StartupInfo.dwFlags := STARTF_USESHOWWINDOW;
StartupInfo.wShowWindow := Visibility;
if not CreateProcess(nil, zAppName, nil, nil, false, CREATE_NEW_CONSOLE or
NORMAL_PRIORITY_CLASS, nil, nil, StartupInfo, ProcessInfo) then
Result := 0
else begin
WaitforSingleObject(ProcessInfo.hProcess, INFINITE);
GetExitCodeProcess(ProcessInfo.hProcess, Result);
CloseHandle( ProcessInfo.hProcess );
CloseHandle( ProcessInfo.hThread );
TerminateProcess(ProcessInfo.hProcess, result);
end;
end;

I call this function like that :

cmd := 'DCC32 "' + {ProjectName}.dpr + '" >compile.txt';
ExecAndWait(cmd, SW_SHOW);

I have deleted {ProjectName}.cfg and copied DCC32.EXE and DCC32.CFG in the
directorie where my app runs.

The DCC32.CFG looks like

-AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
-H
-W
-M
-$M16384,1048576
-K$00400000
-LN"c:\program files\borland\delphi4\Lib;c:\program
files\borland\delphi4\SLib"
-U"c:\program files\borland\delphi4\Lib;c:\program
files\borland\delphi4\Bin;c:\program
files\borland\delphi4\Imports;c:\program
files\borland\delphi4\Source\VCL;\\Serveur_secours\disque2\projet
sir\analyse\bibliotheque d_outils;\\Serveur_secours\disque2\projet
sir\analyse\01xx (sirweb)\01xx21 (saisie
date)\client;\\Serveur_secours\disque2\projet sir\analyse\01xx
(sirweb)\01xx22 (saisie heure)\client;\\Serveur_secours\disque2\projet
sir\analyse\01xx (sirweb)\01xx30 (saisie items fichier de base)\01xx3001
(saisie item simple)\client;\\Serveur_secours\disque2\projet
sir\analyse\bibliotheque d_outils\async32;\\SERVEUR_SECOURS\Disque2\Projet
SIR\Analyse\Aide;\\SERVEUR_SECOURS\Disque2\Projet
SIR\Analyse\BROWSER;\\Serveur_secours\Disque2\Projet
SIR\Analyse\Bibliotheque d_outils\composant;\\Serveur_secours\Disque2\Projet
SIR\Analyse\01XX (SirWEB)\01XX10 (Gestion liste
items[])\Client;\\Serveur_secours\Disque2\Projet SIR\Analyse\Bibliotheque
d_outils\composant\jddateedit"
-E"\\Serveur_secours\disque2\projet sir\analyse\Resultats des compilations"

When i compile through my app, DCC32 crashes after several lines of code
without telling me why (it seems to be an AV or - i don't know how to say it
in english - a page violation). I mean there is no console message. The
error occurs three times then the console closes and give the hand back to
my app.

Does someone have explanations ?

Thank you very much,

Albert.

0 new messages