473,385 Members | 1,752 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,385 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 = Nothing
RaiseEvent Disconnected()
Exit Sub
End If
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,

Aug 17 '05 #1
1 1585
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?


Aug 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
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...
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...
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...
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...
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...
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...
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...
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...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.