473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1587
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lim | last post by:
I've developed a program that raise an event. This program works fine on a Windows 2000 Professional PC. However when I try to run the program on a Windos XP Professional PC, the program will not...
2
by: Vitoto | last post by:
Hi guys, i Need fix this issue. My VB.Net is Anticheat Program, And Server Game is working in port 2346. I Need Thread looking when My computer Established Connection to Any IP in Port 2346...
3
by: Adam | last post by:
I cannot figure out what I'm doing wrong, can someone shed some light on this for me? I have the following code inside a working user control (MyControl): Public Event SubmitClick(ByVal sender...
1
by: Guille | last post by:
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...
2
by: dmoonme | last post by:
I'm trying to rename some files in a directory. Pretty basic stuff - renaming the files works fine but the problem I have is updated the text in textbox. All I want to do is appendtext to a...
7
by: Onokiyo | last post by:
Hello, I have the code below and somehow the message from RaiseEvent doesn't pop up at all. Can someone help me please? '------CODE '------/form1.vb/VB2005/Framework20--------- Imports...
1
by: Terry Olsen | last post by:
I have a program with a couple of long running processes that i'm calling on a separate thread. When the process is completed, I want to raise an event to tell the main thread that it's done. I...
2
by: ffa | last post by:
I have a number of classes that declare a public Event called RefreshData: Public Class Client Implements INotifyPropertyChanged Implements IDisposable Implements IDataErrorInfo Public...
0
by: Mdejolier | last post by:
Hi there, I have seen of few old posts mentioning a problem with the RaiseEvent method not firing in some cases. I just installed Visual Studio 2008 and have experienced the same problem: a class...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.