Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Problem mit CreateProcess (https://www.delphipraxis.net/52192-problem-mit-createprocess.html)

Olli 27. Aug 2005 10:25

Re: Problem mit CreateProcess
 
Zitat:

Zitat von Patrick
Ja, natürlich hängt es an den "", aber ich kann diese nicht weglassen, da in den Pfaden Leerstellen drin sind.

Laß doch bitte, wenn du die Routine von turboPASCAL benutzt, mal alles ab dem ">" weg. Alles!

Was kommt raus?

mashutu 25. Jan 2008 10:05

Re: Problem mit CreateProcess
 
Zitat:

Zitat von turboPASCAL
Ich verwende diese Methode da sie auch "zwischendurch" die Ausgaben umleitet.

Du solltest am Ende den allozierten Speicher noch freigeben.

Delphi-Quellcode:
    if SA.lpSecurityDescriptor <> nil then
        freeMem(SD, SizeOf(SECURITY_DESCRIPTOR));
   
    freeMem(SA, SizeOf(TSecurityAttributes));
Gruss


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:29 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz