Click here to Skip to main content
15,893,486 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: msmq stackoverflow exception Pin
Luc Pattyn15-Nov-07 7:58
sitebuilderLuc Pattyn15-Nov-07 7:58 
Hi,

I have no experience in this, but I see a logical problem in your code.

the MSDN example has BeginPeek as the last statement in the PeekCompleted handler.
Yours has more than one BeginPeek, and they are not at the end, so if they complete
before you have left the Completed handler (Console.WriteLine will take some msecs),
a new one would be launched before the current one exits, consuming stack space.

Hope this helps.



Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


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 
AnswerRe: connection Pin
pmarfleet15-Nov-07 2:52
pmarfleet15-Nov-07 2:52 

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.