Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Frank Church <vfclists@go...> - 2010-01-28 19:42:06
|
I am using Lazarus/FreePascal to run a coLinux VM but the shutdown process just seems to terminate it abruptly and I would like to know if there is some other way. eg when you close click on the close button of a coLinux terminal window, it prints out a yellow notice and goes through a controlled shutdown process. In my case when I close from the Lazarus app, the window disappears abruptly, and I wonder if goes through a controlled shutdown. The start process is like this. vmProcess := TProcess.Create vmProcess.CommandLine := 'c:\colinux\coLinux-daemon.exe -k -t NT -d @rt.conf'; vmProcess.Execute; ShowMessage('process pid = ' + IntToStr(vmProcess.ProcessID)); The ccommand to close is like this. if Assigned(vmProcess) then begin vmProcess.Active := False; vmProcess.Free; end; Is there some value I can derive from the ProcesID than I can use to send a message to windows to close it properly? -- Frank Church ======================= http://devblog.brahmancreations.com |