471,310 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

RaiseEvent not working without VS installed

Hi all!

I'm having some weird behaviour in a .NET application i'm developing.
I'll try to explain:

I've created a Class that wraps an asynchronous socket.
When connect callback is called, i raise a class event :

' Create socket
sock = New Socket(AddressFamily.InterNetwork, _
SocketType.Stream, ProtocolType.Tcp)
' Launch connection
sock.BeginConnect(EP, AddressOf ConnectCallback, Nothing)
End Sub

Private Sub ConnectCallback(ByVal ar As IAsyncResult)
'MsgBox("ConnectCallback called")
If Not sock.Connected Then
sock.Close()
sock = Nothing
RaiseEvent Disconnected()
Exit Sub
End If
sock.EndConnect(ar)
MsgBox("After EndConnect")
RaiseEvent Connected()
'MsgBox("After RaiseEvent")
' Start reception ...

It works fine on my PC, having installed Visual Studio 2003 (7.1.3088)
and .NET framework 1.1.4322 SP1
My problem is that when i deploy this application to other PC's that
dont have VisualStudio installed, the program hangs at the RaiseEvent
call (that is "After EndConnect" box is shown, "After RaiseEvent" box
is not), and the event handler (which has also another MsgBox as the
first command in the sub) isnt called either.
I've checked that they already have .NET framework 1.1.4322 SP1
installed, but i cant make it to work.

Any ideas?

Thanks a Lot,
Guille.

Aug 17 '05 #1
1 1497
Hi guys!

I once found the same problem and wasn't able to solve it.
Since I was in a hurry I just left the asynchronous sockets behind and
used a simple TcpClient.
Maybe this is not appropiate for you, but I don't know what can be
causing that strange behaviour.
Have you checked other DLL dependencies?

Alvaro.

Aug 30 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lim | last post: by
3 posts views Thread by Adam | last post: by
2 posts views Thread by dmoonme | last post: by
7 posts views Thread by Onokiyo | last post: by
1 post views Thread by Terry Olsen | last post: by
2 posts views Thread by ffa | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.