|Anonymous | Login | Signup for a new account||2019-02-16 21:43 CET|
|Main | My View | View Issues | Change Log | Roadmap | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0003176||[JEDI VCL] 00 JVCL Components||minor||always||2005-09-02 01:48||2005-09-23 17:25|
|Summary||0003176: JvCreateProcess, problem using CloseApplication method with a process in Hiden Status|
I run a process (Apache.exe) with ShowWindow=swHide, when I call CloseApplication to try to finish him in a clean way, the process won't stop.
When the process is in swNormal mode, this bug does not appear.
The Apache process could be stopped by sending a WM_CLOSE message.
In the jvCreateProcess.pas unit, in the method "InternalCloseApp", we just have to
comment the following line to correct the problem. WM_CLOSE message could be send to Invisible Window.
// Comment this Line. if IsWindowVisible(Wnd) then
PostMessage(Wnd, WM_CLOSE, 0, 0);
|Tags||No tags attached.|
I don't know why the IsWindowVisible check is there, so I have to investigate it a bit, before committing your fix to CVS.
Anyway, thanks for the report.
I added a check to determine whether the handle is of a console; I could not determine why the IsWindowVisible check is there.
This is in rev 1.29 of JvCreateProcess.pas
|2005-09-02 01:48||fredatwork||New Issue|
|2005-09-05 14:52||remkobonte||Note Added: 0007916|
|2005-09-23 17:24||remkobonte||Status||new => resolved|
|2005-09-23 17:24||remkobonte||Resolution||open => fixed|
|2005-09-23 17:24||remkobonte||Assigned To||=> remkobonte|
|2005-09-23 17:24||remkobonte||Note Added: 0007972|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|