View Issue Details

IDProjectCategoryView StatusLast Update
0003176JEDI VCL00 JVCL Componentspublic2005-09-23 17:25
ReporterfredatworkAssigned Toremkobonte 
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003176: JvCreateProcess, problem using CloseApplication method with a process in Hiden Status
DescriptionI 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.
Additional InformationSolution:

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);
TagsNo tags attached.



2005-09-05 14:52

developer   ~0007916

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.


2005-09-23 17:24

developer   ~0007972

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

Issue History

Date Modified Username Field Change
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