473,795 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connected App (VB2005) Help...

I need to have an app run on several machines in a LAN. They all need to
know of each other's existence and be able to communicate simple messages
back and forth. These messages should be directed to all or just to an
individual.

I wrote this app in VB 2003. Basic Windows Forms programs with system tray
app, and they each connected to a Service on a machine.
The problem was that for some reason the service or the connections don't
seem to survive to the next day. I have no idea why. I have notice other
people's VB services that seem to hang over time.

1.) Any thoughts on why VB services hang?
2.) There may be a better way to do this. I original took the sample code
for a chat program and modified it to do this sort of thing. Is there a
better way to accomplish this? Would you recommend doing so without the
need of a service? Basically I want each user to have this app. It should
start up on login and automatically be in communication with the same app on
all other computers and thus be able to receive messages and respond.

Any suggestions/links as to how I can learn to do this better and so that it
doesn't hang up would be greatly appreciated.

Thanks,

Shane
Dec 12 '06 #1
3 1176

Shane Story wrote:
I need to have an app run on several machines in a LAN. They all need to
know of each other's existence and be able to communicate simple messages
back and forth. These messages should be directed to all or just to an
individual.

I wrote this app in VB 2003. Basic Windows Forms programs with system tray
app, and they each connected to a Service on a machine.
The problem was that for some reason the service or the connections don't
seem to survive to the next day. I have no idea why. I have notice other
people's VB services that seem to hang over time.
Is it possilbe that the machine is powering down the nic? I've had it
happen.
1.) Any thoughts on why VB services hang
2.) There may be a better way to do this. I original took the sample code
for a chat program and modified it to do this sort of thing. Is there a
better way to accomplish this? Would you recommend doing so without the
need of a service? Basically I want each user to have this app. It should
start up on login and automatically be in communication with the same app on
all other computers and thus be able to receive messages and respond.

Any suggestions/links as to how I can learn to do this better and so that it
doesn't hang up would be greatly appreciated.
Your on a LAN, so I might consider that each client could on startup
send out a simple UDP brodcast, telling anyone interested that they are
alive. all other clients could respond with a udp brodcast of their
own giving up their locations. they could broadcast their locations,
so then you could establish a tcp connection if reliable transport is
required.

--
Tom Shelton

Dec 12 '06 #2
Tom,

Thanks for the reply. I suppose that could be happening. Whatever happens,
it won't work again until I restart the service.
I am very new to TCP UDP programming. I just took this example and did the
best I could.

Ok. I have thought of UDP. To broadcast, do open IP 255--the broadcast IP
for our network? Or is there some easier way? It's the technicality of all
of this as well as the theory that I am still fuzzy on. With TCP and a
server, I at least knew where (IP-wise) I was connnecting. I want this
program to be flexible enough that if it works fine here, I could let other
people install it also. I guess then if I did a broadcast and you do use
the broadcast IP (255), what do you do if the network does subnetting so
that 255 isn't the broadcast? Is there a way to find that out? Am I totally
off track on me thinking?

Any good material I could read to better understand this?

Thanks,

"Tom Shelton" <to*********@co mcast.netwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.com...
>
Shane Story wrote:
>I need to have an app run on several machines in a LAN. They all need to
know of each other's existence and be able to communicate simple messages
back and forth. These messages should be directed to all or just to an
individual.

I wrote this app in VB 2003. Basic Windows Forms programs with system
tray
app, and they each connected to a Service on a machine.
The problem was that for some reason the service or the connections don't
seem to survive to the next day. I have no idea why. I have notice
other
people's VB services that seem to hang over time.

Is it possilbe that the machine is powering down the nic? I've had it
happen.
>1.) Any thoughts on why VB services hang
2.) There may be a better way to do this. I original took the sample
code
for a chat program and modified it to do this sort of thing. Is there a
better way to accomplish this? Would you recommend doing so without the
need of a service? Basically I want each user to have this app. It
should
start up on login and automatically be in communication with the same app
on
all other computers and thus be able to receive messages and respond.

Any suggestions/links as to how I can learn to do this better and so that
it
doesn't hang up would be greatly appreciated.

Your on a LAN, so I might consider that each client could on startup
send out a simple UDP brodcast, telling anyone interested that they are
alive. all other clients could respond with a udp brodcast of their
own giving up their locations. they could broadcast their locations,
so then you could establish a tcp connection if reliable transport is
required.

--
Tom Shelton

Dec 12 '06 #3
I found some great code for UDP and got it working.

Thanks Tom
"Tom Shelton" <to*********@co mcast.netwrote in message
news:11******** **************@ 80g2000cwy.goog legroups.com...
>
Shane Story wrote:
>I need to have an app run on several machines in a LAN. They all need to
know of each other's existence and be able to communicate simple messages
back and forth. These messages should be directed to all or just to an
individual.

I wrote this app in VB 2003. Basic Windows Forms programs with system
tray
app, and they each connected to a Service on a machine.
The problem was that for some reason the service or the connections don't
seem to survive to the next day. I have no idea why. I have notice
other
people's VB services that seem to hang over time.

Is it possilbe that the machine is powering down the nic? I've had it
happen.
>1.) Any thoughts on why VB services hang
2.) There may be a better way to do this. I original took the sample
code
for a chat program and modified it to do this sort of thing. Is there a
better way to accomplish this? Would you recommend doing so without the
need of a service? Basically I want each user to have this app. It
should
start up on login and automatically be in communication with the same app
on
all other computers and thus be able to receive messages and respond.

Any suggestions/links as to how I can learn to do this better and so that
it
doesn't hang up would be greatly appreciated.

Your on a LAN, so I might consider that each client could on startup
send out a simple UDP brodcast, telling anyone interested that they are
alive. all other clients could respond with a udp brodcast of their
own giving up their locations. they could broadcast their locations,
so then you could establish a tcp connection if reliable transport is
required.

--
Tom Shelton

Dec 14 '06 #4

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

Similar topics

1
1244
by: Chas | last post by:
Before I start down the road with my first VB2005 app, how do I distribute the finished app? Assuming it is strictly a standalone, how do you create the install package? I am coming from the VB6 world and there are many good installers that would identify the libraries needed and include them in the package. I have used Package and Deploy from MS, InstallShield Express, and Inno to create good VB6 installations. Is there something...
5
3709
by: Chris Devol | last post by:
My dial-up connection sometimes hangs up and has to re-connect. The VB2005 installer/downloader apparently doesn't know how to resume when the connection is re-established. It just aborts! I've wasted many hours on this. Can the whole package be obtained at once with a "smart" download manager instead of having to use the VB2005 installer????? --
1
1228
by: Galen Somerville | last post by:
I uninstalled and reinstalled VB6. When I have an unhandled exception in VB6, it uses the VB2005 Pro debugger. There is no way to leave the VB2005 debugger without ending up at the desktop. How can I make VB6 do it's own debugging so it shows me the statement that causes the exception (like it always has in the past). Anyone have the answer? GalenS
2
1609
by: Omar Abid | last post by:
Hi, This the best site where you can find Hi members, We are happy to tell that if you search for : jobs with high wage or to debug a program or to find a good source code and to make a good design 4 your apps our group is the best to help u just subscribe to :VB2005 EXPRESS at http://groups.google.com/group/vb2005 OMAR ABID GROUP MANAGER
7
1627
by: TAVOSOFT | last post by:
Hi friends, I am begginer , I wanna to learn VB2005 ,Which are good book for to learn VB2005 of level -begginer-intermediate. Thanks you friends.
1
1669
by: erickwan88 | last post by:
I am doing a final year project for my school and is going to provide for an organization, so I am asking for some help on here. Indeed, I have no idea on how to get the input from my pen driver and use on vb2005 as when I activate the pen driver, it will run its own program itself and when I deactivate it, it become a mouse. Therefore, I need to find out how to use the pen to write words on the vb2005 program instead of being either a...
15
2030
by: Aalaan | last post by:
I am presently a user of classic vb6 and hang out on those newsgroups. Some of you may be aware that there is a very anti MS and vb2005 feeling there. I have tried to get them to tell me which features of vb2005 are actually worse then vb6 in practice, and forget the philosophy of backward compatibility for a moment. I would now like to hear "the other side". Could *anyone who previously used vb6* (only those pleased; I feel the others...
1
2252
by: Vae07 | last post by:
Ok so here is a brief summary of my problem. I need a pop up form that submits input text box information to a pocket excel workbook upon a command botton click. Text box inputs are checked for validity upon individual text box exit (don't have a problem with this part). All this could be done with Excel VBA easily, but pocket excel doesn't have VBA/Macro support. In as much, I have been trying to create a VB2005 application that I can load...
2
998
by: slimshedyback | last post by:
i build an application in vb2005 and when i finish i copy my application to another pc and it show me an errror which is unexpected" i know the previus versions of vb and vb6 is simple to create .exe files but,vb2005 i don know how i copy the .exe file found \\bin or \ \debug directory but,,,,still the .exe program doesn't run please help me.......cyberdan@live.com
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.