msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problem whit WINSOCK that Block VB6 at the end

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
TruzA



Joined: 04 Oct 2007
Posts: 3

PostPosted: Wed Sep 10, 2003 3:32 pm    Post subject: problem whit WINSOCK that Block VB6 at the end Reply with quote

[Exuse me for language, I'm Italian]
I can't use Winsock whit my application in VB6,
because everytime I stop my application,
it block VB6, and
I must restart VB6 everytime.

I have reinstall VB6 and SP3,4,5 but
the problem there is again.

How can I do ?????????????


thank for all.

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 2047

PostPosted: Wed Sep 10, 2003 10:07 am    Post subject: Re: problem whit WINSOCK that Block VB6 at the end Reply with quote

"TruzA" wrote in message$9kh$1@panco.nettuno.it
> [Exuse me for language, I'm Italian]
> I can't use Winsock whit my application in VB6,
> because everytime I stop my application,
> it block VB6, and
> I must restart VB6 everytime.

Not sure I understand completely, but if you are using the STOP icon on the
toolbar to stop your VB app then do not do that. At the very least you need
to call a cleanup routine that will close your winsock connections and
anything else that may be open. Using the STOP icon is like using the END
statement - they do not allow for normal cleanup to take place and can cause
a lot of problems.
Back to top
View user's profile Send private message
TruzA



Joined: 04 Oct 2007
Posts: 3

PostPosted: Wed Sep 10, 2003 8:22 pm    Post subject: Re: problem whit WINSOCK that Block VB6 at the end Reply with quote

Yes it is like you think,
but 3 month ago everything went good,
but now no.
What it mean to call a cleanup routine ?
Do you have a little example of code for me?

Thank
and Hi
Back to top
View user's profile Send private message
Monte Hansen



Joined: 04 Oct 2007
Posts: 78

PostPosted: Thu Sep 11, 2003 1:35 am    Post subject: Re: problem whit WINSOCK that Block VB6 at the end Reply with quote

Are you using the Winsock control, or the socket API directly?

--
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+
Monte Hansen - MVP VB
http://KillerVB.com
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+

"TruzA" wrote in message$h4q$1@panco.nettuno.it...
> Yes it is like you think,
> but 3 month ago everything went good,
> but now no.
> What it mean to call a cleanup routine ?
> Do you have a little example of code for me?
>
> Thank
> and Hi
>
>
Back to top
View user's profile Send private message
TruzA



Joined: 04 Oct 2007
Posts: 3

PostPosted: Thu Sep 11, 2003 8:34 pm    Post subject: Re: problem whit WINSOCK that Block VB6 at the end Reply with quote

I'm using the Winsock control!!
Back to top
View user's profile Send private message
Monte Hansen



Joined: 04 Oct 2007
Posts: 78

PostPosted: Thu Sep 11, 2003 12:00 pm    Post subject: Re: problem whit WINSOCK that Block VB6 at the end Reply with quote

You must "Close" your connection when tearing down your app. I think
the control should automagically cleanup if the lazy coder fails to do
so. All bets are off with the Stop button, however.

--
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+
Monte Hansen - MVP VB
http://KillerVB.com
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+

"TruzA" wrote in message$o33$1@panco.nettuno.it...
> I'm using the Winsock control!!
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How to use timeout in Winsock control ? How I can use timeout in Winsock control ? thanks .

Winsock control and EXE file I write an Client-Server application use Winsock control . It work very welll on VB IDE but when I make EXE file anh run it then is hang , please help me , thank answer .

DLL problem... Hi I have a DLL called MSO.DLL that apparently ships with Office XP and Visio 2002 (I have both on my machine). The version I have on my machine is 10.0.3501. Using an application called COM EXPLORER, it tells me that this DLL is a dependency of a whole

Problem running application I have a project created with VB6 Enterprise Edition in one machine, it runs good. Now, I have another machine with VB6 Professional and I have the follow error when trying to run the same project: Adodc1 [ShowCase ODBC

problem with class property I have this new code:- Public Property Let Arrow(ByVal vData&) m_Arrow = vData End Property Public Property Get Arrow() As Long Set Arrow = m_Arrow End Property I've used similar things in the past, so why do I get a compile error - object required
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group