"exit sub" takes for ever

  • Thread starter hsiang Fu via AccessMonster.com
  • Start date
H

hsiang Fu via AccessMonster.com

I have an OCX from a third party.
It requires a call back to handle the data the 3rd party server returns.
So the code goes something like this:

Sub X
submitRequest '(A) the requested results lands in the callback below
continue with stuff '(D) On exiting the callback we continue here
end sub

sub callback
handle the returned data '(B)
exit sub '(C)it takes 15 secs for execution to go back to (D)
end sub

The reposnse time (the time from pt-A to pt-B) is very short, but the time
fro exit sub (C) to (D) is huge, while the cpu usage hits 100% for all that
time!

Any suggestions on what might be causing this will be appreciated.
 
Top