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

.NET (Core and Framework)

 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Rob Philpott9-Apr-13 23:48
Rob Philpott9-Apr-13 23:48 
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 
Ladies and Gentlemen,
i have had something rear its ugly head today and I frankly do NOT for the life of me understand how this can be. After spending a couple of hours PROVING to myself (I am not always easily convinced) that what I am see is real, I scoured the net to the best of my googling abilities and came up empty. So I lay this at your feet hoping someone here has an answer.

Naturally, I am on the customer site with a hard deadline and more than just my reputation at stake! I will spot you that I am NOT the most experienced Windows developer on this plant, but I have been around the block a few times.

Here is my story.

I have created a WPF application that is very much multi-threaded. In fact it is highly dependent on these threads. There are 5 main threads: 1) UI; 2) TCP/IP server; 3) GPIB client; 4) main application; and 5) the main application interface.

When the app starts, MainWindow runs as with most WPF type apps. In the constructor I create some little class to do this and that and I instantiated each of the objects for the 4 main threads (obviously I am in the UI thread). Once the constructor is done the app drops into the normal sort of WPF wait for something to happen kind of thing. Meanwhile my other threads are busy handling comms, reading files and a variety of other things. When a particular msg arrives via TCP/IP the MainWindow is notified and he throws up a Window being used as a dialog. nothing fancy, just var dlg = new myWindow(); dlg.ShowDialog();

Here is where it gets REALLY weird! Every thread in the app stops! Freezes. Goes out to lunch! Describe how you wish. But they freeze. When the dialog is dismissed everybody goes about their business like nothing happened. Of course the reeks havoc on comm threads.

Anybody and ANY ideas why this is happening?? And more to the point what the remedy is?

Oh, I create my background threads using:

Task.Factory.StartNew(() =>
{
_pxiHandler.MainLoop();
}, TaskCreationOptions.LongRunning);

TIA,
Doug
I am a Traveler
of both Time and Space

AnswerRe: WPF Dialog locks all threads Pin
Richard Deeming9-Apr-13 4:21
mveRichard Deeming9-Apr-13 4:21 
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 

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.