Hi Experts!
I have a codeunit, that launches few codeunits. If any of these "codeunitlaunches" won't work, description of this "crash" is written to the error log. After "crash" next codeunit will be launched normally.
After a single codeunit is ready, the "Ready"-messagebox appears.
If there is no "crashes", my codeunit works fine.
If "crash" appear to one codeunit, the other codeunits run normally and error log is written ok.
The problem is with messageboxes. The system shows only messageboxes of the performed codeunits that are launched after "crash". It seems to be, that when data is written to the error log, all those messageboxes disappear, that appeared before crash.
Can you help with this problem?
Yours,
IP
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I haven't done those codeunits, so I'm not sure of their purpose. I guess they only report to user, that codeunit have been succesfully performed.
Maybe you can give me a hint of how to do this in other way, if I show you my algorithm?
Algorithm goes like this:
Codeunits have to be performed in certain order. This order is in the Table. In this table user can change the order in which the codeunits are performed.
Yours,
IP
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Is it possible to clear this "stack" somehow, for example by code?
Yours,
IP
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So, if I want to clear the stack, I have to make a runtime-error on purpose and pass this error by if-sentence. Is it "clever/normal/acceptable" to make a runtime-error on purpose?
Yours,
IP
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.