Click here to Skip to main content
11,712,241 members (70,942 online)

.NET Framework

 
QuestionWhy do we JIT compile everytime a program runs in.NET? Pin
Rob Philpott9-Apr-13 9:40
memberRob Philpott9-Apr-13 9:40 
AnswerRe: Why do we JIT compile everytime a program runs in.NET? Pin
Pete O'Hanlon9-Apr-13 10:09
protectorPete O'Hanlon9-Apr-13 10:09 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Rob Philpott9-Apr-13 21:44
professionalRob Philpott9-Apr-13 21:44 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Pete O'Hanlon9-Apr-13 21:48
protectorPete O'Hanlon9-Apr-13 21:48 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Rob Philpott9-Apr-13 21:49
professionalRob Philpott9-Apr-13 21:49 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Pete O'Hanlon9-Apr-13 21:51
protectorPete O'Hanlon9-Apr-13 21:51 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? Pin
Rob Philpott9-Apr-13 23:48
professionalRob 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
protectorPete O'Hanlon9-Apr-13 23:54 
AnswerRe: Why do we JIT compile everytime a program runs in.NET? Pin
jschell10-Apr-13 8:22
memberjschell10-Apr-13 8:22 
QuestionThe SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. Pin
Jak Anil from Hyderabad, India9-Apr-13 6:44
memberJak Anil from Hyderabad, India9-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
memberBernhard Hiller9-Apr-13 23:34 
GeneralRe: The SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. Pin
Jak Anil from Hyderabad, India9-Apr-13 23:49
memberJak Anil from Hyderabad, India9-Apr-13 23:49 
QuestionRegarding LdapSessionOptions.SecureSocketLayer Pin
Gaurav Ruhela9-Apr-13 2:27
memberGaurav Ruhela9-Apr-13 2:27 
QuestionWPF Dialog locks all threads Pin
AeroClassics8-Apr-13 18:32
memberAeroClassics8-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
professionalRichard Deeming9-Apr-13 4:21 
GeneralRe: WPF Dialog locks all threads Pin
AeroClassics9-Apr-13 12:13
memberAeroClassics9-Apr-13 12:13 
QuestionDifference between MVC3 and MVC4 Pin
Jak Anil from Hyderabad, India5-Apr-13 0:58
memberJak Anil from Hyderabad, India5-Apr-13 0:58 
AnswerRe: Difference between MVC3 and MVC4 Pin
Dave Kreskowiak5-Apr-13 1:55
mvpDave Kreskowiak5-Apr-13 1:55 
Questionvb.net save/load from/to multiple richtextboxes Pin
Member 97065125-Apr-13 0:27
memberMember 97065125-Apr-13 0:27 
AnswerRe: vb.net save/load from/to multiple richtextboxes Pin
Eddy Vluggen5-Apr-13 0:32
mvpEddy Vluggen5-Apr-13 0:32 
QuestionReturning Complex Objects using Linq to Entities Pin
indian1432-Apr-13 20:59
memberindian1432-Apr-13 20:59 
QuestionCreating Stackbased Solutions Pin
Bram van Kampen2-Apr-13 15:08
memberBram 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
mvpRichard MacCutchan2-Apr-13 21:55 
QuestionSame reports multiple times (.rdlc) in Report viewer Pin
M. K. BASHER1-Apr-13 18:23
memberM. K. BASHER1-Apr-13 18:23 
AnswerRe: Same reports multiple times (.rdlc) in Report viewer Pin
Sandeep Mewara1-Apr-13 19:42
mvpSandeep Mewara1-Apr-13 19:42 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer Pin
M. K. BASHER1-Apr-13 20:05
memberM. K. BASHER1-Apr-13 20:05 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer Pin
Sandeep Mewara1-Apr-13 22:05
mvpSandeep Mewara1-Apr-13 22:05 
Questionlanguage conversion problem Pin
Member 995133030-Mar-13 2:03
memberMember 995133030-Mar-13 2:03 
AnswerRe: language conversion problem Pin
Dave Kreskowiak30-Mar-13 4:16
mvpDave Kreskowiak30-Mar-13 4:16 
AnswerRe: language conversion problem Pin
ProgramFOX30-Mar-13 4:43
member ProgramFOX30-Mar-13 4:43 
AnswerRe: language conversion problem Pin
Abhinav S1-Apr-13 22:24
mvpAbhinav S1-Apr-13 22:24 
AnswerRe: language conversion problem Pin
tumbledDown2earth4-Apr-13 22:46
membertumbledDown2earth4-Apr-13 22:46 
QuestionHow to make calender using dynamic table without using ajax calender Pin
navkansal2929-Mar-13 19:35
membernavkansal2929-Mar-13 19:35 
AnswerRe: How to make calender using dynamic table without using ajax calender Pin
Richard MacCutchan29-Mar-13 23:02
mvpRichard MacCutchan29-Mar-13 23:02 
QuestionUsing a WPF Control with WinForms Pin
Pasan14829-Mar-13 4:55
memberPasan14829-Mar-13 4:55 
AnswerRe: Using a WPF Control with WinForms Pin
Eddy Vluggen31-Mar-13 1:20
mvpEddy Vluggen31-Mar-13 1:20 
QuestionDevExpress Ribbon Pin
nagham_4ng27-Mar-13 22:32
membernagham_4ng27-Mar-13 22:32 
AnswerRe: DevExpress Ribbon Pin
Dave Kreskowiak28-Mar-13 2:02
mvpDave Kreskowiak28-Mar-13 2:02 
AnswerRe: DevExpress Ribbon Pin
Vasudevan Deepak Kumar29-Mar-13 6:23
memberVasudevan Deepak Kumar29-Mar-13 6:23 
QuestionHow to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
Vishal_K8927-Mar-13 1:43
memberVishal_K8927-Mar-13 1:43 
GeneralRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
Richard MacCutchan27-Mar-13 3:50
mvpRichard MacCutchan27-Mar-13 3:50 
AnswerRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pin
jschell27-Mar-13 8:53
memberjschell27-Mar-13 8:53 
QuestionHow make steganography in video (.AVI) Pin
Khairul Imam25-Mar-13 11:40
memberKhairul Imam25-Mar-13 11:40 
AnswerRe: How make steganography in video (.AVI) Pin
Dave Kreskowiak25-Mar-13 12:51
mvpDave Kreskowiak25-Mar-13 12:51 
QuestionSerialization and object versioning Pin
Abyss25-Mar-13 9:48
memberAbyss25-Mar-13 9:48 
SuggestionRe: Serialization and object versioning Pin
Matt T Heffron25-Mar-13 10:55
memberMatt T Heffron25-Mar-13 10:55 
GeneralRe: Serialization and object versioning Pin
Abyss25-Mar-13 20:04
memberAbyss25-Mar-13 20:04 
AnswerRe: Serialization and object versioning Pin
AContractor2-Apr-13 15:45
professionalAContractor2-Apr-13 15:45 
QuestionUsing JTABLE in MVC Pin
Member 868327723-Mar-13 23:29
memberMember 868327723-Mar-13 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 1 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid