Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-07

Recursion

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Davidson

Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule engine can handle more than one request at a time.

When a rule cascade recurses for 10th time, a thread dies. But only first time. Triggering the same rule cascade any time after that works perfectly - up to depths of 150+

Mac OS/Darwin.
No objects are created or destroyed during rule cascade. Not dependent on size of rules
FPC 1.9x to 2.x.x

Any hints at all? Been tracking this bug for months :|

P Davidson

Jan Ruzicka
to Paul Davidson

Any luck with gdb?
Would you have a minimal source code example?
Jan

Paul Davidson wrote 24 lines
Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule engine can handle more than one request at a time. When a rule cascade recurses for 10th time, a thread dies. But only first time. Triggering the same rule cascade any time after that works perfectly - up to depths of 150+ Mac OS/Darwin. No objects are created or destroyed during rule cascade. Not dependent on size of rules FPC 1.9x to 2.x.x Any hints at all? Been tracking this bug for months :| P Davidson _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Florian Klaempfl
to Paul Davidson: Having problem with app. It is rule based, and operates with recursion. Events, such as…
Paul Davidson wrote 9 lines
Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule engine can handle more than one request at a time. When a rule cascade recurses for 10th time, a thread dies. But only first time. Triggering the same rule cascade any time after that works perfectly - up to depths of 150+ Mac OS/Darwin.

Does it work on linux?

Show quoted text 12 lines
No objects are created or destroyed during rule cascade. Not dependent on size of rules FPC 1.9x to 2.x.x Any hints at all? Been tracking this bug for months :| P Davidson _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal