RASDIAL - subsequent calls fail

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
 
Joined
Sep 26, 2006
Messages
1
Reaction score
0
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
 
Joined
Jul 16, 2015
Messages
1
Reaction score
0
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top