Morgan
13 years agoFrequent Contributor
Unexpected window not logging error
I have an application window that in TC8 is not logging an error in the log. I am trying to figure out why that is. I have made adjustments to the On Unexpected Window settings on the Playback properties (unchecked all that appear there) as well as unchecked the option to Ignore Overlapping Window and it still performs in the same manner. The error itself is an application error.
The code around this looks as follows. Basically application error appears when one button is clicked, it ignores the fact that the activity log is not the window present and moves on from there....
w.btnOK.Click;
[[[[[ application error occurs and is subsequently closed ]]]]]
w := p.WaitWindow('*', 'Activity Log', -1, 10000);
IF w.Exists THEN BEGIN
n := 0; nmax:=40000;
while w.WndCaption = 'Activity Log' do
begin
if n>nmax then break;
Delay(1000);
w := GetActiveWindow();
inc(n,1000);
end;
-----------------------------------------------------------
So, why isn't it being recognized as an error and how can I correct this?
Thanks,
Morgan
The code around this looks as follows. Basically application error appears when one button is clicked, it ignores the fact that the activity log is not the window present and moves on from there....
w.btnOK.Click;
[[[[[ application error occurs and is subsequently closed ]]]]]
w := p.WaitWindow('*', 'Activity Log', -1, 10000);
IF w.Exists THEN BEGIN
n := 0; nmax:=40000;
while w.WndCaption = 'Activity Log' do
begin
if n>nmax then break;
Delay(1000);
w := GetActiveWindow();
inc(n,1000);
end;
-----------------------------------------------------------
So, why isn't it being recognized as an error and how can I correct this?
Thanks,
Morgan