(A)
{
//some operations
//...
(B);//the function B
}
(B)
{
//other logic
//...
If (XXX)//meet certain conditions, continue to calls A function;
may be loop 2000 times{
(A);
}
}
As the structure of the code, nested call 2000 times, will be submitted to the stack overflow during StackOverFlow
Is currently in the final with A TTimer asynchronous B function, and then calls A function, there are no other better asynchronous method?
BCB doesn't seem to support c + + STD: : async
CodePudding user response:
The actual code not this structure? And nested call 2000 times?CodePudding user response:
TThread: : Queue see, higher version seems to have,CodePudding user response:
Can also send A custom message, the message response function calls in A (), it is asynchronous,