RASDIAL - subsequent calls fail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I'm using RASDial API call from VB.Net - it works ok and connects..
The problem is if it fails the first time (line busy etc) I have it retry a couple of times. Every subsequent try fails with error 668 (ERROR_NO_CONNECTION - the connection dropped)...

I do make sure that I call RASHangUp between RASDial calls (in fact RASHangUp also returns error 668)..

Is there something else I need to do between each call (wait for some timeout / fixed time or something ??


Thanks .. Ke
 
RASDial API call in vb.net

i try to using RASDial API call in vb.net, but i always get error 632. you say that u success to connect, can u give the vb.net code to me.

thanks
 
Well I know you've been waiting 11 years but a possible solution is finally here!

I had this problem (but in C#) and I solved it by making sure I set the lphRasConn parameter to IntPtr.Null inside the loop (i.e. before every attempt) rather than before the loop begins.
 
Back
Top