Click here to Skip to main content
16,004,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: need help Pin
Member 90460523-Aug-04 15:09
Member 90460523-Aug-04 15:09 
GeneralA VB.Net beginner Problem Pin
kitsam22-Aug-04 18:20
kitsam22-Aug-04 18:20 
GeneralConnecting Pocket pc2002 to SQL 2000 Pin
paulmichel22-Aug-04 8:49
paulmichel22-Aug-04 8:49 
GeneralRe: Connecting Pocket pc2002 to SQL 2000 Pin
S Sansanwal22-Aug-04 13:47
S Sansanwal22-Aug-04 13:47 
GeneralDataListView Pin
sagmam22-Aug-04 3:16
sagmam22-Aug-04 3:16 
GeneralRe: DataListView Pin
S Sansanwal22-Aug-04 18:19
S Sansanwal22-Aug-04 18:19 
GeneralRe: DataListView Pin
sagmam22-Aug-04 19:54
sagmam22-Aug-04 19:54 
GeneralVB.NET socket, Threading and Database Problem Pin
jimmypearly21-Aug-04 21:56
jimmypearly21-Aug-04 21:56 
OS: Winxp and Win2003
Visual Basic.NET 2003
MS-SQL Server 2000

hey all

I am a newbie in vb.net but i have managed to build a simple chat server in vb.net using socket and a client connecting to it made in vb6. Some of the code in the server are based on the basic samples that i get from other authors. To give you an idea, the server uses sockets, multi-threading and a database connection to MS-SQL server 2000. the off line messages, contacts lists, current status of the rooms and conference rooms are stored in the database. The client app is already done and it already meets the requirements for connecting into the server, but my server has not been optimized to do its job since i am in the code,debug and learn level, i'm still trying to make it stable. But during my testing of the server it pops an error which i haven't solved for a few weeks now especially if the server is running for a longer period of time. I have searched to a number of sites but i wouldn't give me the exact solution to my problem.

Problem:

1.)Once the server is running more than 24 hours and receives a bunch of chat messages from the client application it tends to slows down its response to the client although im testing it on a single user connection, what i did was only send a test flood of messages , then connect and disconnect a hundred times.

2.)After a hundred of test flood messages to the server and connect/disconnect session from the client, the server pops an exception error such as “operation not allowed on a non-connected sockets” but when i click ok button of the msgbox my client app sees that it is still connected to the server. The client could still send commands such as [user search but not on private and room chatting anymore] .

3.)When the server tries to save a data into the sql server it then gives me another error “the statement has been terminated”.

4.)the problem that i mostly see is during login, private and room chat, saving to database. Other strange behavior of the server is that it can still recieve a search user command and then reply for the result but when i try to do private or room chat, there it pops the error messages again and no reply to the client whatsoever.


Questions
1.)Do you think vb.net can handle more than a hundred concurrent user online or more or maybe thousand?
2.)Do you think its a good choice to have the client built in vb6 and the chat server built in vb.net ? any ideas are welcome

Frown | :( Guys please i really need your help with my problems ! especially on socket and multi-threading. Any comments, suggestion or modification of the code are welcome. I have provided the server code in my site, I've omitted some of the codes and classes, to get you into the direct point, i have posted additional information of my problem in my site and some other screen shot of the error.

my site:http://www.geocities.com/jimmypearly/index.html
Thanks
Jim

PS sorry for my poor english.

-just make it tough
GeneralRe: VB.NET socket, Threading and Database Problem Pin
Dave Kreskowiak23-Aug-04 6:29
mveDave Kreskowiak23-Aug-04 6:29 
Generalchanging ip's a problem... Pin
ineedhelp21-Aug-04 21:52
ineedhelp21-Aug-04 21:52 
GeneralRe: changing ip's a problem... Pin
Daniel Turini21-Aug-04 22:22
Daniel Turini21-Aug-04 22:22 
Generalproject ideas Pin
mkb_198221-Aug-04 21:22
mkb_198221-Aug-04 21:22 
GeneralRe: project ideas Pin
S Sansanwal22-Aug-04 13:43
S Sansanwal22-Aug-04 13:43 
GeneralProxy Server... i.e. HTTP and Sock version 4 & 5 Pin
ihjaffery21-Aug-04 9:15
ihjaffery21-Aug-04 9:15 
GeneralRe: Proxy Server... i.e. HTTP and Sock version 4 & 5 Pin
Anonymous21-Aug-04 9:44
Anonymous21-Aug-04 9:44 
GeneralCreating Pocket PC apps w/ VB .NET Pin
Glisson21-Aug-04 6:57
Glisson21-Aug-04 6:57 
GeneralRe: Creating Pocket PC apps w/ VB .NET Pin
Colin Angus Mackay21-Aug-04 7:33
Colin Angus Mackay21-Aug-04 7:33 
GeneralRe: Creating Pocket PC apps w/ VB .NET Pin
Glisson21-Aug-04 9:16
Glisson21-Aug-04 9:16 
GeneralRe: Creating Pocket PC apps w/ VB .NET Pin
Dave Kreskowiak21-Aug-04 10:37
mveDave Kreskowiak21-Aug-04 10:37 
GeneralRe: Creating Pocket PC apps w/ VB .NET Pin
Glisson21-Aug-04 10:42
Glisson21-Aug-04 10:42 
Generalwmplayer and transparencykey Pin
ddd0121-Aug-04 6:13
ddd0121-Aug-04 6:13 
GeneralRe: wmplayer and transparencykey Pin
Anonymous21-Aug-04 9:15
Anonymous21-Aug-04 9:15 
GeneralRe: wmplayer and transparencykey Pin
ddd ssss21-Aug-04 14:38
ddd ssss21-Aug-04 14:38 
GeneralRe: wmplayer and transparencykey Pin
Anonymous21-Aug-04 16:46
Anonymous21-Aug-04 16:46 
GeneralRe: wmplayer and transparencykey Pin
ddd ssss21-Aug-04 18:49
ddd ssss21-Aug-04 18:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.