Skip to search.
PowerThreading · Richter/Wintellect Power Threading

Group Information

  • Members: 258
  • Category: Software
  • Founded: Jun 26, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Debugging   Message List  
Reply Message #999 of 1043 |
Re: [PowerThreading] Debugging

It appears related to the SyncContext. The first time through, the SyncContext is not null - but for subsequent calls it's null (not sure yet why that is). By setting the ae's SyncContext = null before calling BeginExecute I can hit all the breaks.

Thanks,

-Nate



Thu Jan 26, 2012 3:36 am

nathanielmarler
Offline Offline
Send Email Send Email

Message #999 of 1043 |
Expand Messages Author Sort by Date

I have an odd situation and could use some debugging advice. The first time I call Foo below I only see break (1), and never any others (I expect 1, 2, 3, 4,...
Nathaniel
nathanielmarler Offline Send Email
Jan 25, 2012
8:32 pm

I just tried this and it did work for me. My full code is below. This did uncover a small somewhat unrelated bug where ResumeCallback did not get invoked and I...
Jeffrey Richter
jeffrey.richter Offline Send Email
Jan 26, 2012
1:10 am

I've been using your AE now for a few years in several projects and never had a problem quite like this. No doubt that AE is solid - this is almost certainly...
Nathaniel Marler
nathanielmarler Offline Send Email
Jan 26, 2012
2:38 am

So, you tried the code I sent in a console app and it did work for you but your version with the singleton does not work? --Jeffrey Richter...
Jeffrey Richter
jeffrey.richter Offline Send Email
Jan 26, 2012
2:43 am

Correct. Ran your sample code using original dll and confirmed the bug, then with your new version and confirmed the fix Referenced your new dll in my app and...
Nathaniel Marler
nathanielmarler Offline Send Email
Jan 26, 2012
2:55 am

It appears related to the SyncContext. The first time through, the SyncContext is not null - but for subsequent calls it's null (not sure yet why that is). By...
Nathaniel Marler
nathanielmarler Offline Send Email
Jan 26, 2012
3:36 am

Are you in a GUI app and blocking the GUI thread? --Jeffrey Richter (http://Wintellect.com) From: PowerThreading@yahoogroups.com...
Jeffrey Richter
jeffrey.richter Offline Send Email
Jan 26, 2012
3:48 am

Always on a worker thread per the Threads window (GUI not blocking). I've used a number of AEs to compose an asynchronous workflow (involves database ...
Nathaniel Marler
nathanielmarler Offline Send Email
Jan 26, 2012
4:22 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help