Hi Community,
I am using matlab 2024b compiler to build exe programs on test pcs. It process 100 + pcap payload and writes different result output to the text file in file system. I have been experiencing in production test, this program stalls at last iteration, unable to complete the writes and ending with application timeout error detected.
Is it possible to add a timeout for matlab compiled programs to self terminate in case of stalled loop or errors during file io?
Is it possible to add an interrupt /signal handler to such exe, so external caller can pass signal to this process/program and print stack frame/last executed program counter to debug more?
we have tried removal matlab cache storage. The matlab script + generated exe program works fine with same input parameters in standalone mode. when we do automation and run tests one after another, timeout of exe shows up randomly. any debug directions for exe programs is well appreciated.

1 Kommentar

dpb
dpb am 23 Jul. 2026 um 14:49
The environment and communications channels here are confusing/unclear. Is this "compiled exe" a web app, maybe, or is the "file system" over a network connection, or ...? What generates the timeout? What does "timeout of exe shows up randomly" mean compared to the prior "this program stalls at last iteration"?
As far as terminating, you could create a "deadman" timer that has to be refreshed at some interval and that if not and times out, exits the program.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Application Deployment finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 23 Jul. 2026 um 13:37

Kommentiert:

dpb
am 23 Jul. 2026 um 14:49

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by