Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: Daft question on indenting text. Pin
Dave Kreskowiak3-Sep-13 5:37
mveDave Kreskowiak3-Sep-13 5:37 
AnswerRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 5:58
Septimus Hedgehog3-Sep-13 5:58 
AnswerRe: Daft question on indenting text. Pin
jschell3-Sep-13 12:40
jschell3-Sep-13 12:40 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 20:36
Septimus Hedgehog3-Sep-13 20:36 
AnswerRe: Daft question on indenting text. Pin
BillWoodruff3-Sep-13 17:24
professionalBillWoodruff3-Sep-13 17:24 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog3-Sep-13 20:45
Septimus Hedgehog3-Sep-13 20:45 
GeneralRe: Daft question on indenting text. Pin
BillWoodruff3-Sep-13 23:29
professionalBillWoodruff3-Sep-13 23:29 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog4-Sep-13 0:35
Septimus Hedgehog4-Sep-13 0:35 
Bill, I identified the "tumbleweed problem" a short while ago and I kick myself for not finding it sooner. The device I have the socket connected to demands a ping "keep alive" interval. I have that value in the app config file, say, 1000s for example but my ping thread sleeps for 9/10th of the time, 900 seconds. After the thread wakes up, it waits on a semaphore and usually gets it within a few seconds at most but it depends on the other thread to finish its work. If the other thread only finds a few records in the database it'll finish and release the semaphore allowing the ping thread to get in and ping the device where it then kips for another 900s.

It took a bit of time to go through several 100 lines of trace but on the "random" occasions the socket fell over, there were more records selected. Aha! But it wasn't always consistent. Eventually I saw it. The ping thread woke up and waited on the semaphore with 100s to go. If the other thread took 102s to process all the records, the ping was overdue and the device silently killed the connection so I got an exception the next time I tried to write to it. My bad! I wasn't really displaying enough information. I changed the interval from 9/10ths of the specified time to 1/3rd. It doesn't matter how often the pings take place but each time one is handled, the device resets its timer and ticks on until the next is due. Go overdue and the connection is toasted. I made the ping interval longer, 30m and at 1/3rd intervals I send one every 10m. That 20m period remaining will be more than sufficient for the largest dataset to be processed. In a sense then, I was sailing very close to shore and I scraped my keel on some rocks. Laugh | :laugh:

Call me Cap'n Calamity if you will. Think of the Costa Concordia.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.

GeneralRe: Daft question on indenting text. Pin
BillWoodruff4-Sep-13 3:52
professionalBillWoodruff4-Sep-13 3:52 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog4-Sep-13 6:00
Septimus Hedgehog4-Sep-13 6:00 
AnswerRe: Daft question on indenting text. Pin
Bernhard Hiller3-Sep-13 22:40
Bernhard Hiller3-Sep-13 22:40 
GeneralRe: Daft question on indenting text. Pin
Septimus Hedgehog4-Sep-13 0:15
Septimus Hedgehog4-Sep-13 0:15 
QuestionSubstring / Split String help Pin
Member 101198373-Sep-13 5:02
Member 101198373-Sep-13 5:02 
AnswerRe: Substring / Split String help Pin
Dave Kreskowiak3-Sep-13 5:30
mveDave Kreskowiak3-Sep-13 5:30 
GeneralRe: Substring / Split String help Pin
Member 101198373-Sep-13 5:39
Member 101198373-Sep-13 5:39 
GeneralRe: Substring / Split String help Pin
Dave Kreskowiak3-Sep-13 5:47
mveDave Kreskowiak3-Sep-13 5:47 
AnswerRe: Substring / Split String help Pin
BillWoodruff3-Sep-13 17:46
professionalBillWoodruff3-Sep-13 17:46 
AnswerRe: Substring / Split String help Pin
Forbiddenx4-Sep-13 4:59
Forbiddenx4-Sep-13 4:59 
Question"Handle" Pin
Bernhard Hiller3-Sep-13 3:07
Bernhard Hiller3-Sep-13 3:07 
AnswerRe: "Handle" Pin
Dave Kreskowiak3-Sep-13 3:49
mveDave Kreskowiak3-Sep-13 3:49 
GeneralRe: "Handle" Pin
Bernhard Hiller3-Sep-13 21:43
Bernhard Hiller3-Sep-13 21:43 
GeneralRe: "Handle" Pin
Dave Kreskowiak4-Sep-13 1:16
mveDave Kreskowiak4-Sep-13 1:16 
QuestionI can not Update my table when I want to check duplicate Records ... Pin
smh13923-Sep-13 2:00
smh13923-Sep-13 2:00 
AnswerRe: I can not Update my table when I want to check duplicate Records ... Pin
Bernhard Hiller3-Sep-13 22:47
Bernhard Hiller3-Sep-13 22:47 
GeneralRe: I can not Update my table when I want to check duplicate Records ... Pin
smh13924-Sep-13 3:27
smh13924-Sep-13 3:27 

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.