View Issue Details

IDProjectCategoryView StatusLast Update
0017807Lazarus-public2020-04-01 06:21
ReporterAbou Al Montacir Assigned ToJuha Manninen  
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Platformi386OSDebian GNU/linux 
Summary0017807: TAsyncProcess.OnTerminate event not fired
DescriptionThe TAsyncProcess.OnTerminate event seems not to be fired when the child process is terminated.
Steps To ReproduceCreate a new project with TAsyncProcess and a button calling the Execute method and attach a OnTerminate handler. This will never be called.
Additional InformationAttached a program for reproducing the issue
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetGTK 2
Attached Files

Relationships

has duplicate 0033897 closedBart Broersma TAsyncprocess.OnTerminate event not called 

Activities

2010-11-02 22:32

 

asyncprocesstest.tar.bz2 (144,694 bytes)

BBaz

2018-06-24 12:22

reporter   ~0109026

Platform : "ALL"

No good Workaround found so far. One problem is that it depends on the amount of data written to stdout, which is not always predictable. Another is that an asyncprocess is supposed not to block the software so looping until termination is a bad alternative, looping with processmessages a complete error causing sync issues in the output streams. Using a timer doesn't work well either...

A LCL fix is really needed.

Bart Broersma

2018-06-24 12:45

developer   ~0109028

Off topic:
Issue History
2018-06-23 23:52 Bart Broersma Issue Monitored: Martin Friebe

How did that happen? I did not add Martin to the user list.

Martin Friebe

2018-06-24 13:55

manager   ~0109030

A guess?: I was monitoring the duplicate issue

Fr0sT

2020-02-27 13:08

reporter   ~0121243

@BBaz I use Timer ATM and it seems good.

Juha Manninen

2020-04-01 06:21

developer   ~0121810

> Using a timer doesn't work well either...
BBaz, why not?

Fr0sT, can you please provide a patch for TAsyncProcess implementing a timer.

Issue History

Date Modified Username Field Change
2010-11-02 22:32 Abou Al Montacir New Issue
2010-11-02 22:32 Abou Al Montacir File Added: asyncprocesstest.tar.bz2
2010-11-02 22:32 Abou Al Montacir Widgetset => GTK 2
2010-11-03 08:10 Vincent Snijders Project Lazarus CCR => Lazarus
2010-11-03 08:11 Vincent Snijders LazTarget => 1.0
2010-11-03 08:11 Vincent Snijders Status new => acknowledged
2010-11-03 08:11 Vincent Snijders Target Version => 1.0.0
2012-02-04 13:31 Zeljan Rikalo LazTarget 1.0 => 1.2
2012-03-13 07:50 Vincent Snijders Target Version 1.0.0 => 1.2.0
2014-01-14 15:10 Martin Friebe LazTarget 1.2 => 1.4
2014-01-14 15:12 Martin Friebe Target Version 1.2.0 => 1.4
2015-04-27 21:59 Juha Manninen LazTarget 1.4 => -
2015-04-27 22:02 Juha Manninen Target Version 1.4 =>
2018-06-23 23:52 Bart Broersma Relationship added has duplicate 0033897
2018-06-24 12:22 BBaz Note Added: 0109026
2018-06-24 12:45 Bart Broersma Note Added: 0109028
2018-06-24 13:55 Martin Friebe Note Added: 0109030
2020-02-27 13:08 Fr0sT Note Added: 0121243
2020-04-01 06:21 Juha Manninen Assigned To => Juha Manninen
2020-04-01 06:21 Juha Manninen Status acknowledged => feedback
2020-04-01 06:21 Juha Manninen Note Added: 0121810