Click here to Skip to main content
15,913,685 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: I created org chart using trial version, it is running only in localhost. If i want to run IIS it is giving message like u have to purchase and i am not able to view that chart. Is there any alternation solution to view that chart and run in Serv Pin
Dave Kreskowiak9-Sep-10 3:51
mveDave Kreskowiak9-Sep-10 3:51 
GeneralRe: I created org chart using trial version, it is running only in localhost. If i want to run IIS it is giving message like u have to purchase and i am not able to view that chart. Is there any alternation solution to view that chart and run in Serv Pin
fjdiewornncalwe9-Sep-10 7:29
professionalfjdiewornncalwe9-Sep-10 7:29 
GeneralRe: I created org chart using trial version, it is running only in localhost... Pin
Kunal Chowdhury «IN»10-Sep-10 17:12
professionalKunal Chowdhury «IN»10-Sep-10 17:12 
QuestionOdd problem with UDPClient [modified] - Solved Pin
Peter R. Fletcher8-Sep-10 9:17
Peter R. Fletcher8-Sep-10 9:17 
AnswerRe: Odd problem with UDPClient Pin
Luc Pattyn8-Sep-10 9:32
sitebuilderLuc Pattyn8-Sep-10 9:32 
GeneralRe: Odd problem with UDPClient Pin
Peter R. Fletcher8-Sep-10 10:20
Peter R. Fletcher8-Sep-10 10:20 
GeneralRe: Odd problem with UDPClient Pin
Luc Pattyn8-Sep-10 10:53
sitebuilderLuc Pattyn8-Sep-10 10:53 
GeneralRe: Odd problem with UDPClient Pin
Peter R. Fletcher9-Sep-10 10:44
Peter R. Fletcher9-Sep-10 10:44 
Thanks!

The short version is that your suggestions about reorganising the Threading certainly simplified things and may well have been 90% responsible for solving the problem (I'll come back to the 10%, below)

The longer version:
1. Agreed!

2. Done, with very minor modifications. The While loop blocks "automatically" on the UDPClient.Receive call, which doesn't return until the next Status Report packet arrives, 10 seconds later.

3. Done (and in one other place in the Class)

4. It was actually only the first packet sent after the (initial and only) UDPClient.Connect call that seemed to have problems - only that packet was sent twice by my original code (the first For loop has an early exit). Your code sends every packet twice, which was not my intention!

5. Threads (up until recently) weren't my thing. Data structures are! There are (IMHO) good reasons for the way I am doing this.

6. I have resorted to this sort of approach once or twice (more when I was writing real-time data acquisition and control stuff), but haven't found it useful in general programming often enough to put the "hooks" for it in my code on a routine basis.

7. It appears from further experimentation with the modified code that you do need delays between at least some calls to UDPClient Methods, and that I wasn't leaving quite enough time between them in some cases. Sleeping for 200 msec seems to work reliably for my situation - 100 msec is not always enough. I think that it is possible that the Application.DoEvents calls were "working" simply because they were wasting more time, and the poor threading code may also have been only a contributing factor to the problems.
GeneralRe: Odd problem with UDPClient Pin
Luc Pattyn9-Sep-10 10:59
sitebuilderLuc Pattyn9-Sep-10 10:59 
GeneralRe: Odd problem with UDPClient Pin
Peter R. Fletcher13-Sep-10 4:51
Peter R. Fletcher13-Sep-10 4:51 
QuestionAdding different contorl( combox, textbox) in a single coloumn of datagirdview (window) Pin
shahabsuhail7-Sep-10 22:56
shahabsuhail7-Sep-10 22:56 
AnswerRe: Adding different contorl( combox, textbox) in a single coloumn of datagirdview (window) Pin
Dave Kreskowiak8-Sep-10 4:18
mveDave Kreskowiak8-Sep-10 4:18 
Questionapplication path Pin
Jefry boycot7-Sep-10 4:59
Jefry boycot7-Sep-10 4:59 
AnswerRe: application path Pin
The Man from U.N.C.L.E.7-Sep-10 6:34
The Man from U.N.C.L.E.7-Sep-10 6:34 
AnswerRe: application path Pin
RaviRanjanKr15-Dec-10 5:25
professionalRaviRanjanKr15-Dec-10 5:25 
QuestionHow does Application.DoEvents work? Pin
MicroVirus7-Sep-10 2:44
MicroVirus7-Sep-10 2:44 
AnswerRe: How does Application.DoEvents work? Pin
Luc Pattyn7-Sep-10 3:17
sitebuilderLuc Pattyn7-Sep-10 3:17 
GeneralRe: How does Application.DoEvents work? Pin
MicroVirus7-Sep-10 9:25
MicroVirus7-Sep-10 9:25 
AnswerRe: How does Application.DoEvents work? Pin
Johann Gerell8-Sep-10 2:41
Johann Gerell8-Sep-10 2:41 
GeneralRe: How does Application.DoEvents work? Pin
Luc Pattyn8-Sep-10 2:45
sitebuilderLuc Pattyn8-Sep-10 2:45 
GeneralRe: How does Application.DoEvents work? Pin
Spectre_0018-Sep-10 4:18
Spectre_0018-Sep-10 4:18 
GeneralRe: How does Application.DoEvents work? Pin
Luc Pattyn8-Sep-10 4:30
sitebuilderLuc Pattyn8-Sep-10 4:30 
AnswerRe: How does Application.DoEvents work? Pin
Guy Harwood8-Sep-10 2:05
Guy Harwood8-Sep-10 2:05 
GeneralRe: How does Application.DoEvents work? Pin
Mike Devenney8-Sep-10 2:49
Mike Devenney8-Sep-10 2:49 
AnswerRe: How does Application.DoEvents work? Pin
Patrick Fox8-Sep-10 5:41
Patrick Fox8-Sep-10 5:41 

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.