Click here to Skip to main content
       

.NET Framework

 
QuestionWhy do we JIT compile everytime a program runs in.NET? PinmemberRob Philpott9-Apr-13 10:40 
AnswerRe: Why do we JIT compile everytime a program runs in.NET? PinprotectorPete O'Hanlon9-Apr-13 11:09 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprofessionalRob Philpott9-Apr-13 22:44 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprotectorPete O'Hanlon9-Apr-13 22:48 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprofessionalRob Philpott9-Apr-13 22:49 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprotectorPete O'Hanlon9-Apr-13 22:51 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprofessionalRob Philpott10-Apr-13 0:48 
GeneralRe: Why do we JIT compile everytime a program runs in.NET? PinprotectorPete O'Hanlon10-Apr-13 0:54 
AnswerRe: Why do we JIT compile everytime a program runs in.NET? Pinmemberjschell10-Apr-13 9:22 
QuestionThe SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. PinmemberJak Anil from Hyderabad, India9-Apr-13 7:44 
AnswerRe: The SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. PinmemberBernhard Hiller10-Apr-13 0:34 
GeneralRe: The SELECT permission was denied on the object 'services', database 'mssqlsystemresource', schema 'sys'. PinmemberJak Anil from Hyderabad, India10-Apr-13 0:49 
QuestionRegarding LdapSessionOptions.SecureSocketLayer PinmemberGaurav Ruhela9-Apr-13 3:27 
QuestionWPF Dialog locks all threads PinmemberAeroClassics8-Apr-13 19: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 PinprofessionalRichard Deeming9-Apr-13 5:21 
GeneralRe: WPF Dialog locks all threads PinmemberAeroClassics9-Apr-13 13:13 
QuestionDifference between MVC3 and MVC4 [modified] PinmemberJak Anil from Hyderabad, India5-Apr-13 1:58 
AnswerRe: Difference between MVC3 and MVC4 PinmvpDave Kreskowiak5-Apr-13 2:55 
Questionvb.net save/load from/to multiple richtextboxes PinmemberMember 97065125-Apr-13 1:27 
AnswerRe: vb.net save/load from/to multiple richtextboxes PinmvpEddy Vluggen5-Apr-13 1:32 
QuestionReturning Complex Objects using Linq to Entities Pinmemberindian1432-Apr-13 21:59 
QuestionCreating Stackbased Solutions PinmemberBram van Kampen2-Apr-13 16:08 
AnswerRe: Creating Stackbased Solutions PinprofessionalAContractor2-Apr-13 16:31 
AnswerRe: Creating Stackbased Solutions PinmvpRichard MacCutchan2-Apr-13 22:55 
QuestionSame reports multiple times (.rdlc) in Report viewer [modified] PinmemberM. K. BASHER1-Apr-13 19:23 
AnswerRe: Same reports multiple times (.rdlc) in Report viewer PinmvpSandeep Mewara1-Apr-13 20:42 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer PinmemberM. K. BASHER1-Apr-13 21:05 
GeneralRe: Same reports multiple times (.rdlc) in Report viewer PinmvpSandeep Mewara1-Apr-13 23:05 
Questionlanguage conversion problem PinmemberMember 995133030-Mar-13 3:03 
AnswerRe: language conversion problem PinmvpDave Kreskowiak30-Mar-13 5:16 
AnswerRe: language conversion problem Pinmember ProgramFOX30-Mar-13 5:43 
AnswerRe: language conversion problem PinmvpAbhinav S1-Apr-13 23:24 
AnswerRe: language conversion problem PinmembertumbledDown2earth4-Apr-13 23:46 
QuestionHow to make calender using dynamic table without using ajax calender Pinmembernavkansal2929-Mar-13 20:35 
AnswerRe: How to make calender using dynamic table without using ajax calender PinmvpRichard MacCutchan30-Mar-13 0:02 
QuestionUsing a WPF Control with WinForms PinmemberPasan14829-Mar-13 5:55 
AnswerRe: Using a WPF Control with WinForms PinmvpEddy Vluggen31-Mar-13 2:20 
QuestionDevExpress Ribbon Pinmembernagham_4ng27-Mar-13 23:32 
AnswerRe: DevExpress Ribbon PinmvpDave Kreskowiak28-Mar-13 3:02 
AnswerRe: DevExpress Ribbon PinmemberVasudevan Deepak Kumar29-Mar-13 7:23 
QuestionHow to Identify .Net Dll's/Assemblies from Project supporting all Dll types? PinmemberVishal_K8927-Mar-13 2:43 
GeneralRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? PinmvpRichard MacCutchan27-Mar-13 4:50 
AnswerRe: How to Identify .Net Dll's/Assemblies from Project supporting all Dll types? Pinmemberjschell27-Mar-13 9:53 
QuestionHow make steganography in video (.AVI) PinmemberKhairul Imam25-Mar-13 12:40 
AnswerRe: How make steganography in video (.AVI) PinmvpDave Kreskowiak25-Mar-13 13:51 
QuestionSerialization and object versioning PinmemberAbyss25-Mar-13 10:48 
SuggestionRe: Serialization and object versioning PinmemberMatt T Heffron25-Mar-13 11:55 
GeneralRe: Serialization and object versioning PinmemberAbyss25-Mar-13 21:04 
AnswerRe: Serialization and object versioning PinprofessionalAContractor2-Apr-13 16:45 
QuestionUsing JTABLE in MVC PinmemberMember 868327724-Mar-13 0: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.141223.1 | Last Updated 25 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid