Click here to Skip to main content
16,005,467 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Multiple instances of program Pin
Jay Royall21-Sep-09 21:59
Jay Royall21-Sep-09 21:59 
AnswerRe: Multiple instances of program Pin
N a v a n e e t h21-Sep-09 7:03
N a v a n e e t h21-Sep-09 7:03 
Questionxml datatype Pin
Ebube21-Sep-09 4:04
Ebube21-Sep-09 4:04 
AnswerRe: xml datatype Pin
Johan Hakkesteegt21-Sep-09 7:45
Johan Hakkesteegt21-Sep-09 7:45 
GeneralRe: xml datatype Pin
Ebube22-Sep-09 7:08
Ebube22-Sep-09 7:08 
GeneralRe: xml datatype Pin
Johan Hakkesteegt22-Sep-09 22:07
Johan Hakkesteegt22-Sep-09 22:07 
Questionchat program Pin
manisghouri21-Sep-09 3:56
manisghouri21-Sep-09 3:56 
AnswerRe: chat program Pin
Dave Kreskowiak21-Sep-09 4:01
mveDave Kreskowiak21-Sep-09 4:01 
First, you don't need the database at all. What you're doing puts an ever increasing load on the database with rising number of clients since you're polling the database for new messages.

Next, all you have to do is add a conversation layer above your clients. If its the first client to hit the server, the servers creates a new conversation. The next client that hits the server can get the list of conversions to join, or create a new one.

Your chat app should be sockets based (TCP/IP) so that if one client posts a message, the server can immediately send that message to all other clients in the same conversation without having the clients polling for new messages.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: chat program Pin
manisghouri21-Sep-09 4:32
manisghouri21-Sep-09 4:32 
GeneralRe: chat program Pin
Steven J Jowett21-Sep-09 5:37
Steven J Jowett21-Sep-09 5:37 
GeneralRe: chat program Pin
manisghouri21-Sep-09 6:18
manisghouri21-Sep-09 6:18 
QuestionOLEDB.. Pin
Jamal Abdul Nasir21-Sep-09 2:58
Jamal Abdul Nasir21-Sep-09 2:58 
AnswerRe: OLEDB.. Pin
Jamal Abdul Nasir21-Sep-09 3:15
Jamal Abdul Nasir21-Sep-09 3:15 
AnswerRe: OLEDB.. Pin
Dave Kreskowiak21-Sep-09 3:56
mveDave Kreskowiak21-Sep-09 3:56 
QuestionTextBox Format to Currency Pin
PAguilar0920-Sep-09 18:39
PAguilar0920-Sep-09 18:39 
AnswerRe: TextBox Format to Currency Pin
Christian Graus20-Sep-09 19:47
protectorChristian Graus20-Sep-09 19:47 
GeneralRe: TextBox Format to Currency Pin
PAguilar0920-Sep-09 20:15
PAguilar0920-Sep-09 20:15 
GeneralRe: TextBox Format to Currency Pin
Christian Graus20-Sep-09 20:35
protectorChristian Graus20-Sep-09 20:35 
GeneralRe: TextBox Format to Currency Pin
PAguilar0920-Sep-09 20:56
PAguilar0920-Sep-09 20:56 
AnswerRe: TextBox Format to Currency Pin
DaveAuld20-Sep-09 23:57
professionalDaveAuld20-Sep-09 23:57 
AnswerRe: TextBox Format to Currency Pin
Steven J Jowett21-Sep-09 2:14
Steven J Jowett21-Sep-09 2:14 
RantStupid remarks by stupid people who are an MVP Pin
BluesEnd20-Sep-09 9:25
BluesEnd20-Sep-09 9:25 
GeneralRe: Stupid remarks by stupid people who are an MVP Pin
Christian Graus20-Sep-09 11:16
protectorChristian Graus20-Sep-09 11:16 
GeneralRe: Stupid remarks by stupid people who are an MVP Pin
Dave Kreskowiak20-Sep-09 16:58
mveDave Kreskowiak20-Sep-09 16:58 
GeneralRe: Stupid remarks by stupid people who are an MVP Pin
leppie20-Sep-09 19:37
leppie20-Sep-09 19:37 

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.