Click here to Skip to main content
15,886,258 members
Home / Discussions / C#
   

C#

 
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 
QuestionReset fields on a aspx. page Pin
imnotso#15-Nov-07 4:00
imnotso#15-Nov-07 4:00 
AnswerRe: Reset fields on a aspx. page Pin
leckey15-Nov-07 4:49
leckey15-Nov-07 4:49 
GeneralRe: Reset fields on a aspx. page Pin
imnotso#15-Nov-07 4:54
imnotso#15-Nov-07 4:54 
AnswerRe: Reset fields on a aspx. page Pin
Dave Kreskowiak15-Nov-07 7:31
mveDave Kreskowiak15-Nov-07 7:31 
GeneralRe: Reset fields on a aspx. page Pin
imnotso#15-Nov-07 23:12
imnotso#15-Nov-07 23:12 
GeneralRe: Reset fields on a aspx. page Pin
Dave Kreskowiak16-Nov-07 2:14
mveDave Kreskowiak16-Nov-07 2:14 
GeneralRe: Reset fields on a aspx. page Pin
imnotso#16-Nov-07 2:24
imnotso#16-Nov-07 2:24 
QuestionReg: Mass Mail to Users Pin
rajuson15-Nov-07 3:39
rajuson15-Nov-07 3:39 
AnswerRe: Reg: Mass Mail to Users Pin
Rob Philpott15-Nov-07 3:47
Rob Philpott15-Nov-07 3:47 
AnswerRe: Reg: Mass Mail to Users Pin
Anthony Mushrow15-Nov-07 3:49
professionalAnthony Mushrow15-Nov-07 3:49 
Questionconnection Pin
SVb.net15-Nov-07 2:17
SVb.net15-Nov-07 2:17 
AnswerRe: connection Pin
Rob Philpott15-Nov-07 2:24
Rob Philpott15-Nov-07 2:24 

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.