Click here to Skip to main content
15,918,109 members
Home / Discussions / C#
   

C#

 
AnswerRe: Double row in TreeView or ListView Pin
m@u17-Jul-07 2:06
m@u17-Jul-07 2:06 
GeneralRe: Double row in TreeView or ListView Pin
Andrea_8617-Jul-07 6:14
Andrea_8617-Jul-07 6:14 
QuestionMSMQ Error Handling Pin
ramdil17-Jul-07 1:38
ramdil17-Jul-07 1:38 
AnswerRe: MSMQ Error Handling Pin
Jimmanuel17-Jul-07 3:55
Jimmanuel17-Jul-07 3:55 
GeneralRe: MSMQ Error Handling Pin
ramdil17-Jul-07 4:24
ramdil17-Jul-07 4:24 
GeneralRe: MSMQ Error Handling Pin
Jimmanuel17-Jul-07 4:35
Jimmanuel17-Jul-07 4:35 
GeneralRe: MSMQ Error Handling Pin
ramdil17-Jul-07 5:35
ramdil17-Jul-07 5:35 
GeneralRe: MSMQ Error Handling Pin
Jimmanuel17-Jul-07 6:10
Jimmanuel17-Jul-07 6:10 
I'm not quite sure that I fully understand you. If you don't catch the exception then the program will explode. From the code segment posted, it looks like you want to read the first available message from the MSMQ and store the body of it in the variable "XMLMSMQFileName" and for each 100 ms that no message is received log an error . . . is this correct?

If so there are a few things to note:
1) there's no need to set mq to a new MessageQueue in each iteration of the loop. setting it once before the loop should be sufficient
2) if the timeout expires and the exception is thrown that means there are no messages in the queue, so calling Purge() is unnecessary
3) IsMessageRecieved needs to be set to true or else it will keep reading messages from the queue



GeneralRe: MSMQ Error Handling Pin
ramdil17-Jul-07 6:23
ramdil17-Jul-07 6:23 
GeneralRe: MSMQ Error Handling [modified] Pin
Jimmanuel17-Jul-07 6:45
Jimmanuel17-Jul-07 6:45 
GeneralRe: MSMQ Error Handling Pin
ramdil17-Jul-07 7:15
ramdil17-Jul-07 7:15 
GeneralRe: MSMQ Error Handling Pin
Jimmanuel17-Jul-07 7:27
Jimmanuel17-Jul-07 7:27 
GeneralRe: MSMQ Error Handling Pin
ramdil17-Jul-07 22:28
ramdil17-Jul-07 22:28 
QuestionRemote method calls Pin
kkadir17-Jul-07 1:33
kkadir17-Jul-07 1:33 
AnswerRe: Remote method calls Pin
Malcolm Smart17-Jul-07 1:41
Malcolm Smart17-Jul-07 1:41 
GeneralRe: Remote method calls Pin
kkadir17-Jul-07 2:17
kkadir17-Jul-07 2:17 
GeneralRe: Remote method calls Pin
Malcolm Smart17-Jul-07 2:51
Malcolm Smart17-Jul-07 2:51 
QuestionGetting the user default locale identifier in c# Pin
Tal S.17-Jul-07 0:51
Tal S.17-Jul-07 0:51 
AnswerRe: Getting the user default locale identifier in c# Pin
Le centriste17-Jul-07 2:16
Le centriste17-Jul-07 2:16 
GeneralRe: Getting the user default locale identifier in c# Pin
Tal S.18-Jul-07 3:49
Tal S.18-Jul-07 3:49 
QuestionDebugging the windows service Pin
M. J. Jaya Chitra17-Jul-07 0:43
M. J. Jaya Chitra17-Jul-07 0:43 
AnswerRe: Debugging the windows service Pin
Nisar Inamdar17-Jul-07 0:56
Nisar Inamdar17-Jul-07 0:56 
AnswerRe: Debugging the windows service Pin
originSH17-Jul-07 1:00
originSH17-Jul-07 1:00 
GeneralRe: Debugging the windows service Pin
M. J. Jaya Chitra17-Jul-07 18:11
M. J. Jaya Chitra17-Jul-07 18:11 
AnswerRe: Debugging the windows service Pin
Harkamal Singh17-Jul-07 6:58
Harkamal Singh17-Jul-07 6:58 

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.