Click here to Skip to main content
15,887,135 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Pete O'Hanlon9-Apr-13 23:54
mvePete O'Hanlon9-Apr-13 23:54 
AnswerRe: Why do we JIT compile everytime a program runs in.NET? Pin
jschell10-Apr-13 8:22
jschell10-Apr-13 8:22 
QuestionThe SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. Pin
Jak Anil9-Apr-13 6:44
Jak Anil9-Apr-13 6:44 
AnswerRe: The SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. Pin
Bernhard Hiller9-Apr-13 23:34
Bernhard Hiller9-Apr-13 23:34 
GeneralRe: The SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. Pin
Jak Anil9-Apr-13 23:49
Jak Anil9-Apr-13 23:49 
QuestionRegarding LdapSessionOptions.SecureSocketLayer Pin
Gaurav wpf9-Apr-13 2:27
Gaurav wpf9-Apr-13 2:27 
QuestionWPF Dialog locks all threads Pin
AeroClassics8-Apr-13 18:32
professionalAeroClassics8-Apr-13 18:32 
AnswerRe: WPF Dialog locks all threads Pin
Richard Deeming9-Apr-13 4:21
mveRichard Deeming9-Apr-13 4:21 
I suspect your background threads are running on a TaskScheduler which is tied to the Dispatcher of the UI thread. Try passing TaskScheduler.Default to the Task.Factory.StartNew method:
C#
Task.Factory.StartNew(_pxiHandler.MainLoop, 
    CancellationToken.None, 
    TaskCreationOptions.LongRunning, 
    TaskScheduler.Default);

Obviously you'll need to make sure that any UI access or collection modification is posted to the UI thread.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: WPF Dialog locks all threads Pin
AeroClassics9-Apr-13 12:13
professionalAeroClassics9-Apr-13 12:13 
QuestionDifference between MVC3 and MVC4 Pin
Jak Anil5-Apr-13 0:58
Jak Anil5-Apr-13 0:58 
AnswerRe: Difference between MVC3 and MVC4 Pin
Dave Kreskowiak5-Apr-13 1:55
mveDave Kreskowiak5-Apr-13 1:55 
Questionvb.net save/load from/to multiple richtextboxes Pin
Member 97065125-Apr-13 0:27
Member 97065125-Apr-13 0:27 
AnswerRe: vb.net save/load from/to multiple richtextboxes Pin
Eddy Vluggen5-Apr-13 0:32
professionalEddy Vluggen5-Apr-13 0:32 
QuestionReturning Complex Objects using Linq to Entities Pin
indian1432-Apr-13 20:59
indian1432-Apr-13 20:59 
QuestionCreating Stackbased Solutions Pin
Bram van Kampen2-Apr-13 15:08
Bram van Kampen2-Apr-13 15:08 
AnswerRe: Creating Stackbased Solutions Pin
AContractor2-Apr-13 15:31
professionalAContractor2-Apr-13 15:31 
AnswerRe: Creating Stackbased Solutions Pin
Richard MacCutchan2-Apr-13 21:55
mveRichard MacCutchan2-Apr-13 21:55 
QuestionSame reports multiple times (.rdlc) in Report viewer Pin
M. K. BASHER1-Apr-13 18:23
M. K. BASHER1-Apr-13 18:23 
AnswerRe: Same reports multiple times (.rdlc) in Report viewer Pin
Sandeep Mewara1-Apr-13 19:42
mveSandeep Mewara1-Apr-13 19:42 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer Pin
M. K. BASHER1-Apr-13 20:05
M. K. BASHER1-Apr-13 20:05 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer Pin
Sandeep Mewara1-Apr-13 22:05
mveSandeep Mewara1-Apr-13 22:05 
Questionlanguage conversion problem Pin
Member 995133030-Mar-13 2:03
Member 995133030-Mar-13 2:03 
AnswerRe: language conversion problem Pin
Dave Kreskowiak30-Mar-13 4:16
mveDave Kreskowiak30-Mar-13 4:16 
AnswerRe: language conversion problem Pin
Thomas Daniels30-Mar-13 4:43
mentorThomas Daniels30-Mar-13 4:43 
AnswerRe: language conversion problem Pin
Abhinav S1-Apr-13 22:24
Abhinav S1-Apr-13 22: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.