Click here to Skip to main content
15,892,517 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
manach30-Sep-14 7:06
manach30-Sep-14 7:06 
QuestionC# - EventsHelper.FireAsync (async event handling in general) Pin
slikrik15-Nov-07 7:35
slikrik15-Nov-07 7:35 
AnswerRe: C# - EventsHelper.FireAsync (async event handling in general) Pin
Judah Gabriel Himango15-Nov-07 9:28
sponsorJudah Gabriel Himango15-Nov-07 9:28 
QuestionFile & FileInfo Pin
half-life15-Nov-07 6:07
half-life15-Nov-07 6:07 
AnswerRe: File & FileInfo Pin
Albu Marius15-Nov-07 6:14
Albu Marius15-Nov-07 6:14 
GeneralRe: File & FileInfo Pin
half-life15-Nov-07 6:40
half-life15-Nov-07 6:40 
QuestionVisual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 6:04
Khoramdin15-Nov-07 6:04 
AnswerRe: Visual Studio 2005 Standard Edition Pin
led mike15-Nov-07 6:07
led mike15-Nov-07 6:07 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Albu Marius15-Nov-07 6:10
Albu Marius15-Nov-07 6:10 
AnswerRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 6:48
Khoramdin15-Nov-07 6:48 
GeneralRe: Visual Studio 2005 Standard Edition Pin
led mike15-Nov-07 7:09
led mike15-Nov-07 7:09 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 10:10
Khoramdin15-Nov-07 10:10 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Dave Kreskowiak15-Nov-07 7:28
mveDave Kreskowiak15-Nov-07 7:28 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 10:11
Khoramdin15-Nov-07 10:11 
Questionhow to connect hardware device Pin
cs.it.tech15-Nov-07 5:10
cs.it.tech15-Nov-07 5:10 
AnswerRe: how to connect hardware device Pin
Dave Kreskowiak15-Nov-07 7:30
mveDave Kreskowiak15-Nov-07 7:30 
GeneralRe: how to connect hardware device Pin
cs.it.tech15-Nov-07 8:39
cs.it.tech15-Nov-07 8:39 
GeneralRe: how to connect hardware device Pin
Dan Neely15-Nov-07 8:57
Dan Neely15-Nov-07 8:57 
GeneralRe: how to connect hardware device Pin
Dave Kreskowiak15-Nov-07 10:51
mveDave Kreskowiak15-Nov-07 10:51 
Questionmsmq stackoverflow exception Pin
poqeqw15-Nov-07 5:05
poqeqw15-Nov-07 5:05 
I am writeing windows service that makes use in MSMQ in .net 2003 in c#.
I user the method beginPeek(TimeSpan) and waiting for an message to arrive
the event handler look like this:
private void MyPeekCompleted(Object source,
PeekCompletedEventArgs asyncResult)
{
try
{
// End the asynchronous peek operation.
Message m = _mq.EndPeek(asyncResult.AsyncResult);


//logic to handel message

mq.BeginPeek(new TimeSpan(0,1,0));

}
catch(MessageQueueException e)
{
if (e.MessageQueueErrorCode ==
MessageQueueErrorCode.IOTimeout)
{
Console.WriteLine(e.ToString());
}
_mq.BeginPeek(new TimeSpan(0,1,0));
}
catch(Exception ex)
{
// some code to handel error
}


after a while i get stackoverflow exception. event though no message arrives...
It works fike for a couple of minuts and than crushes..

How can i solve this..
Sample code will be greate help..
im using winXP

Thnks


AnswerRe: msmq stackoverflow exception Pin
Luc Pattyn15-Nov-07 7:58
sitebuilderLuc Pattyn15-Nov-07 7:58 
GeneralRe: msmq stackoverflow exception Pin
poqeqw15-Nov-07 9:20
poqeqw15-Nov-07 9:20 
GeneralRe: msmq stackoverflow exception Pin
poqeqw15-Nov-07 9:26
poqeqw15-Nov-07 9:26 
GeneralRe: msmq stackoverflow exception Pin
Luc Pattyn15-Nov-07 9:55
sitebuilderLuc Pattyn15-Nov-07 9:55 
Questionmsmq stackoverflow exception Pin
poqeqw15-Nov-07 5:01
poqeqw15-Nov-07 5:01 

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.