3

A native HLA-function that runs when a capture is stopped


S
Simen

I'd like my HLA's to be aware of when the capture is stopped. For example to write a report file on the current capture or to clean up whatever the HLA has been doing during the capture. I think the best option would be to have another method like __init__() and decode() that is automatically run when the capture stops.

A

Activity Newest / Oldest

Avatar

Tim

(#65771)
"The HLA feature is extremely useful and a very cool feature. But I miss in the API a call, where I can dealloc or close something.

In the __init__ function of class Hla(HighLevelAnalyzer), I can init something, like opening a file, but I did not found a place where I can close a file, e.g. after all the data is processed. So the file handle keeps open, until Logic Application is closed.

It seems also that __del__ is also not called, and registering a cleanup handler via " atexit.register(self.cleanup)" seems also not to work."


M

Michael

This seems to be similar to topic "Support "Last Packet" HLA Frame Property"


M

Michael

Required, to close file handles, and other clean-up etc.