Click here to Skip to main content
15,892,674 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Load dll client side Pin
Adriaan Davel3-Jan-10 20:33
Adriaan Davel3-Jan-10 20:33 
GeneralRe: Load dll client side Pin
Mark Salsbery3-Jan-10 20:44
Mark Salsbery3-Jan-10 20:44 
GeneralRe: Load dll client side Pin
Adriaan Davel4-Jan-10 2:44
Adriaan Davel4-Jan-10 2:44 
AnswerRe: Load dll client side Pin
Mark Salsbery24-Dec-09 8:39
Mark Salsbery24-Dec-09 8:39 
AnswerRe: Load dll client side Pin
Adriaan Davel3-Jan-10 22:05
Adriaan Davel3-Jan-10 22:05 
Question[WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga22-Dec-09 11:00
pbalaga22-Dec-09 11:00 
QuestionRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
Mark Salsbery23-Dec-09 7:06
Mark Salsbery23-Dec-09 7:06 
AnswerRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga25-Dec-09 3:56
pbalaga25-Dec-09 3:56 
Thanks for your response.

I've managed to overcome the problem, but rather by changing my approach than by understanding what's actually wrong.

I was not loading the mentioned file on a separate thread explicitly. Maybe the system was doing something alike without letting me know.

Anyway, I tried to run that WPF application with a custom Main() method. (I didn't alter the auto-generated entry point file, but created my own basing on WinForms experience.) It was like that:

Main()
{
   DerivedAppClass app = new DerivedAppClass();
   app.Run();
}


DerivedAppClass was located in an external dll as an extension of the WPF's Application class. It's obvious, but seems to be not that straightforward in WPF. After I started following the default scheme(App.xaml + App.xaml.cs), it's working as expected.
GeneralRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
Mark Salsbery25-Dec-09 8:02
Mark Salsbery25-Dec-09 8:02 
GeneralRe: [WPF] XamlParseException ----> The calling thread must be STA Pin
pbalaga25-Dec-09 10:09
pbalaga25-Dec-09 10:09 
QuestionCreate Radio Button!! Pin
Sr...Frank22-Dec-09 4:08
Sr...Frank22-Dec-09 4:08 
AnswerRe: Create Radio Button!! Pin
Mark Salsbery22-Dec-09 5:59
Mark Salsbery22-Dec-09 5:59 
GeneralRe: Create Radio Button!! Pin
Sr...Frank22-Dec-09 6:24
Sr...Frank22-Dec-09 6:24 
GeneralRe: Create Radio Button!! Pin
Mark Salsbery23-Dec-09 6:21
Mark Salsbery23-Dec-09 6:21 
QuestionListBox Multi Selection without holding Shift Key? Pin
Member 232448321-Dec-09 20:14
Member 232448321-Dec-09 20:14 
QuestionFlow Layout versus Fixed Layout Pin
Richard Andrew x6421-Dec-09 13:08
professionalRichard Andrew x6421-Dec-09 13:08 
AnswerRe: Flow Layout versus Fixed Layout Pin
Aviad P.21-Dec-09 20:05
Aviad P.21-Dec-09 20:05 
QuestionResources and Deployment - App does not run Pin
cutudi21-Dec-09 3:59
cutudi21-Dec-09 3:59 
AnswerRe: Resources and Deployment - App does not run Pin
Pete O'Hanlon21-Dec-09 4:13
mvePete O'Hanlon21-Dec-09 4:13 
GeneralRe: Resources and Deployment - App does not run Pin
cutudi21-Dec-09 4:19
cutudi21-Dec-09 4:19 
QuestionSystem.Net.HttpWebRequest missing members Pin
Siberz21-Dec-09 3:43
Siberz21-Dec-09 3:43 
AnswerRe: System.Net.HttpWebRequest missing members Pin
Mark Salsbery21-Dec-09 13:20
Mark Salsbery21-Dec-09 13:20 
QuestionTranslate transform in code Pin
AghaKhan21-Dec-09 1:52
AghaKhan21-Dec-09 1:52 
QuestionThrow Errors while run a wpf animated application Pin
damubooks21-Dec-09 1:46
damubooks21-Dec-09 1:46 
AnswerRe: Throw Errors while run a wpf animated application Pin
AghaKhan21-Dec-09 6:50
AghaKhan21-Dec-09 6:50 

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.