Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
GeneralRe: service Pin
mnssr18-Jan-09 14:35
mnssr18-Jan-09 14:35 
QuestionProblem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 3:46
spiritboy17-Jan-09 3:46 
AnswerRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 3:48
spiritboy17-Jan-09 3:48 
AnswerRe: Problem with Open(or save)Filedialog [modified] Pin
Luc Pattyn17-Jan-09 4:03
sitebuilderLuc Pattyn17-Jan-09 4:03 
GeneralRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 6:06
spiritboy17-Jan-09 6:06 
AnswerRe: Problem with Open(or save)Filedialog [modified] Pin
Luc Pattyn17-Jan-09 6:21
sitebuilderLuc Pattyn17-Jan-09 6:21 
GeneralRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 6:49
spiritboy17-Jan-09 6:49 
AnswerRe: Problem with Open(or save)Filedialog Pin
Luc Pattyn17-Jan-09 7:17
sitebuilderLuc Pattyn17-Jan-09 7:17 
Hi,

I still don't get the overall architecture of your app. If you want help, then please explain yourself.

This is what I got so far:
- it is a server app; AFAIK most servers create a thread for every incoming request, so each request can get handled at its own pace (the alternative of just queueing all requests and handling them one by one does not scale well).
- you use AcceptTcpClient() which is a blocking call; if you do this on the main thread, the GUI dies
until a client comes in??? otherwise, you need a separate thread that accepts clients and dispatches them.

suggestions:
- explain the architecture, using real names;
- show actual code, not just a skeleton; but not hundreds of lines, just the relevant pieces.
- when in doubt about threading use either someControl.InvokeRequired; whenever it returns true you need
to use (Begin)Invoke
- and/or when in doubt about threading, log the Thread.CurrentThread.ManagedThreadId so you can compare
it to the one of the GUI thread (by logging ManagedThreadId say inside a form load handler).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


QuestionSqlDataReader contents Pin
AmbitiousBeginner17-Jan-09 3:13
AmbitiousBeginner17-Jan-09 3:13 
AnswerRe: SqlDataReader contents Pin
Not Active17-Jan-09 3:20
mentorNot Active17-Jan-09 3:20 
QuestionSuppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
KarthikonIT17-Jan-09 2:33
KarthikonIT17-Jan-09 2:33 
AnswerRe: Suppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
Abhijit Jana17-Jan-09 3:11
professionalAbhijit Jana17-Jan-09 3:11 
GeneralRe: Suppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
KarthikonIT17-Jan-09 3:57
KarthikonIT17-Jan-09 3:57 
QuestionDetect Idle activity in a webpage Pin
Mazen El Cheikh17-Jan-09 1:15
Mazen El Cheikh17-Jan-09 1:15 
AnswerRe: Detect Idle activity in a webpage Pin
Christian Graus17-Jan-09 1:49
protectorChristian Graus17-Jan-09 1:49 
GeneralRe: Detect Idle activity in a webpage Pin
Mazen El Cheikh17-Jan-09 23:27
Mazen El Cheikh17-Jan-09 23:27 
Question[Message Deleted] Pin
lavankumar16-Jan-09 22:59
lavankumar16-Jan-09 22:59 
AnswerRe: how to break Dongle key from hardware device Pin
Garth J Lancaster16-Jan-09 23:24
professionalGarth J Lancaster16-Jan-09 23:24 
AnswerRe: how to break Dongle key from hardware device Pin
bachuwarmahendar17-Jan-09 0:39
bachuwarmahendar17-Jan-09 0:39 
JokeRe: how to break Dongle key from hardware device Pin
Abhijit Jana17-Jan-09 0:51
professionalAbhijit Jana17-Jan-09 0:51 
QuestionHow to fill Data to gridview on Textchange event of Textbox Pin
sanpune16-Jan-09 20:56
sanpune16-Jan-09 20:56 
AnswerRe: How to fill Data to gridview on Textchange event of Textbox Pin
Abhijit Jana16-Jan-09 21:42
professionalAbhijit Jana16-Jan-09 21:42 
QuestionHow to modify datasource of crystal report at runtime Pin
Ali 11016-Jan-09 20:42
Ali 11016-Jan-09 20:42 
AnswerCross-post Pin
Wendelius16-Jan-09 23:40
mentorWendelius16-Jan-09 23:40 
Questionturning a developed application to a software package [modified] Pin
AmbitiousBeginner16-Jan-09 20:13
AmbitiousBeginner16-Jan-09 20:13 

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.