iNET Interactive - Online Advertising Agency
          
Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Winsock makes my program hang


Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2002, 05:25 PM
LS1
 
Posts: n/a
Default Winsock makes my program hang

This just started to happen today. I am writing a POP/SMTP client, and when I run the program it works fine, but when I try to end the program, I just get an hour glass...then VB does not respond. I found out how to fix it...but its a PITA. If i have the form open in design mode when I run then stop the program when the socket is connected, it will freeze; BUT, if i close the design form THEN run the program, it will not freeze vb when I end the program. I close the socket whenever I stop the program so that shouldnt be any problem. I also downloaded other applications that use winsock, and the same error occurs.

I re-installed VB like 3 times today, and same error. I even downloaded diff WINSCK.OCX files...and the same!

Does anyone know WHY this is happening and HOW I can fix it? Sorry for the long post...

BTW, it was working fine yesterday until I created an EXE of the program to send out to a friend.

Im using VB6, and I also have VS.NET installed. Sorry for the long post...
Reply With Quote
  #2  
Old 09-22-2002, 12:47 AM
JimCamel's Avatar
JimCamel JimCamel is offline
Mostly Absent
* Expert *
 
Join Date: Jun 2002
Location: Christchurch, New Zealand
Posts: 2,006
Default

Are you using sockets or the winsock control?
I'm pretty sure that winsock is called mswinsck.ocx, not winsck.ocx.

Anyways, you might wanna check to see that you're not getting into some kind of infinite loop when you're unloading controls (ie the winsock control) or when the programs terminating.

Have you tried any other programs which other people have used which use winsock? Did they work? That way you can tell if it's your code or something wrong with your computer/vb/winsock.

Jim
__________________
Sometimes it happens feelings die, Whole years are lost in the blink of an eye
We once had it all but event conspired, Sometimes
Now that it's over, it is through, It gets me everytime I think of you
Sometimes It happens, feelings die, Sometimes
Reply With Quote
  #3  
Old 09-22-2002, 01:01 PM
LS1
 
Posts: n/a
Default

yea..it is mswinsck.ocx

yea, i did try someone elses program...and it does the same. i think my vb sucks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Advertisement: