Click here to Skip to main content
15,908,843 members
Home / Discussions / C#
   

C#

 
GeneralRe: Form's this.Close() is not responding Pin
mav.northwind17-Aug-04 3:10
mav.northwind17-Aug-04 3:10 
GeneralRe: Form's this.Close() is not responding Pin
CNU17-Aug-04 15:47
CNU17-Aug-04 15:47 
GeneralRe: Form's this.Close() is not responding Pin
mav.northwind17-Aug-04 20:07
mav.northwind17-Aug-04 20:07 
Questionconvert .pwi to image? Pin
khchan15-Aug-04 16:14
khchan15-Aug-04 16:14 
AnswerRe: convert .pwi to image? Pin
leppie15-Aug-04 19:33
leppie15-Aug-04 19:33 
GeneralRe: convert .pwi to image? Pin
khchan15-Aug-04 20:58
khchan15-Aug-04 20:58 
GeneralRe: convert .pwi to image? Pin
leppie15-Aug-04 21:22
leppie15-Aug-04 21:22 
GeneralA CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 15:41
Danny Rodriguez15-Aug-04 15:41 
Greetings CP!

Well - it appears I've been presented with a roadblock and cant seem to find the problem.

Heres the situatio.

Ive created an app that has to scann 16000+ servers - for now - all that has to be done is connect and send and receive once asynchronously.

I am able to get the entire process down - the problem that occurs is that at random times the app just halts.

It just stops connecting to the servers - no exceptions thrown - no nada. Its not a threading problem - unless its a bug in the threadpooling for asychronous socket communications.


To draw out some broad strokes about the current scenario

Classes
MainForm applications main form
ConnectionState stores connection information
- buffer
- socket
- server hostname
- start time / end time / elapsed time
ConnectionManager this object is used in the main form (connection
state is not accessed directly)
- i start the process with a method called
CheckServers() which is passed to a ThreadStart object
in the main form for a Thread object named worker
- the worker thread is started and is set to a
background thread from the main form
MessageEventHandler a delegate used to pass the messages from the buffer
to controls on the main form


I know this is a somewhat complicated issue to deal with over these forums.. but - i have traced every aspect of my code - 2-3 days spent in the debugger watching everything and still no luck.


Any suggestions?



Danny!
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Brad Bruce15-Aug-04 16:13
Brad Bruce15-Aug-04 16:13 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 16:14
Danny Rodriguez15-Aug-04 16:14 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
leppie15-Aug-04 19:40
leppie15-Aug-04 19:40 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 20:19
Danny Rodriguez15-Aug-04 20:19 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 21:02
Danny Rodriguez15-Aug-04 21:02 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
leppie15-Aug-04 21:19
leppie15-Aug-04 21:19 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez16-Aug-04 16:09
Danny Rodriguez16-Aug-04 16:09 
GeneralWanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
Bompus15-Aug-04 15:03
Bompus15-Aug-04 15:03 
GeneralRe: Wanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
leppie15-Aug-04 19:43
leppie15-Aug-04 19:43 
GeneralRe: Wanted: MultiColumn Expandable/Collapsable TreeView/ListView Pin
yetanotherchris17-Aug-04 5:45
yetanotherchris17-Aug-04 5:45 
GeneralControl of database entry Pin
tzewei15-Aug-04 14:37
tzewei15-Aug-04 14:37 
GeneralRe: Control of database entry Pin
S Sansanwal15-Aug-04 16:47
S Sansanwal15-Aug-04 16:47 
Generalshowing dataset progress Pin
slundstrom15-Aug-04 13:52
slundstrom15-Aug-04 13:52 
GeneralRe: showing dataset progress Pin
Dave Kreskowiak15-Aug-04 15:49
mveDave Kreskowiak15-Aug-04 15:49 
Generalowner drawn listview Pin
yetanotherchris15-Aug-04 12:08
yetanotherchris15-Aug-04 12:08 
GeneralRe: owner drawn listview Pin
leppie15-Aug-04 19:55
leppie15-Aug-04 19:55 
GeneralRe: owner drawn listview Pin
yetanotherchris15-Aug-04 22:59
yetanotherchris15-Aug-04 22:59 

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.