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

C#

 
QuestionProblem in Code : SEE COMMENT** Pin
Anonymous24-Sep-05 16:13
Anonymous24-Sep-05 16:13 
AnswerRe: Problem in Code : SEE COMMENT** Pin
Guffa24-Sep-05 22:00
Guffa24-Sep-05 22:00 
QuestionControl Array Pin
StephenMcAllister24-Sep-05 10:49
StephenMcAllister24-Sep-05 10:49 
AnswerRe: Control Array Pin
Daniel Grunwald24-Sep-05 21:34
Daniel Grunwald24-Sep-05 21:34 
GeneralRe: Control Array Pin
StephenMcAllister24-Sep-05 21:57
StephenMcAllister24-Sep-05 21:57 
Questionxml node problem Pin
thepersonof24-Sep-05 8:48
thepersonof24-Sep-05 8:48 
AnswerRe: xml node problem Pin
Guffa24-Sep-05 12:27
Guffa24-Sep-05 12:27 
QuestionApplication Domains Pin
Tomas Brennan24-Sep-05 4:41
Tomas Brennan24-Sep-05 4:41 
Howdy all,

I have a problem in trying to get application domains setup and hope somebody there could point me in the right direction. I came across code from gotdotnet that is called apploader (http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=2C78AB99-E190-4A4A-A91A-F7DE1DE78E5B[^]. I am trying to implement a Windows Forms that creates an application domain, using the SpawnedApp class as per in the source for apploader, load the process into the newly created appdomain. Funny thing is this, in the AppLoader as per gotdotnet.com it's Main Thread attribute is [MTAThread], Winforms are by default [STAThread], Apploader worked a treat - loaded assemblies fine and worked, but I've tried to get it to work under winforms which fails. It loads the assemblies under the newly created appdomain on a winform and executes up to a certain point then it crashes. Is there something I'm missing or something that is not well documented regarding creating app domains in a winforms application?? Would threading have anything to do with it as that's my hunch. I click on a button which fires a thread, then creating a new instance of spawnedapp class with the full path to the assemblies/config file which in turn creates a thread and executes it in the new appdomain.

I've been tearing my hair out in frustration Big Grin | :-D .Maybe my sig sums it all up!! Smile | :)

Hope you could help me out on this one!

Kind regards,
Tom Brennan.

#define STOOPID
#if STOOPID
Console.WriteLine("I'm stoopid!");
#endif
AnswerRe: Application Domains Pin
Nick Parker24-Sep-05 9:05
protectorNick Parker24-Sep-05 9:05 
GeneralRe: Application Domains Pin
Tomas Brennan25-Sep-05 5:38
Tomas Brennan25-Sep-05 5:38 
GeneralRe: Application Domains Pin
Tomas Brennan29-Sep-05 3:13
Tomas Brennan29-Sep-05 3:13 
QuestionBig StructLayout question Pin
Alex Cutovoi24-Sep-05 4:14
Alex Cutovoi24-Sep-05 4:14 
AnswerRe: Big StructLayout question Pin
Guffa24-Sep-05 8:44
Guffa24-Sep-05 8:44 
QuestionC# articles Pin
CWinThread24-Sep-05 4:12
CWinThread24-Sep-05 4:12 
AnswerRe: C# articles Pin
Alex Cutovoi24-Sep-05 4:21
Alex Cutovoi24-Sep-05 4:21 
GeneralRe: C# articles Pin
CWinThread24-Sep-05 13:18
CWinThread24-Sep-05 13:18 
QuestionWhich is efficient? "" or string.Empty ? Pin
manivannan.p24-Sep-05 2:59
manivannan.p24-Sep-05 2:59 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
mav.northwind24-Sep-05 3:17
mav.northwind24-Sep-05 3:17 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa24-Sep-05 8:52
Guffa24-Sep-05 8:52 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
mav.northwind24-Sep-05 9:29
mav.northwind24-Sep-05 9:29 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
leppie24-Sep-05 14:34
leppie24-Sep-05 14:34 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Guffa25-Sep-05 5:36
Guffa25-Sep-05 5:36 
GeneralRe: Which is efficient? "" or string.Empty ? Pin
Nick Parker24-Sep-05 9:22
protectorNick Parker24-Sep-05 9:22 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Judah Gabriel Himango24-Sep-05 10:37
sponsorJudah Gabriel Himango24-Sep-05 10:37 
AnswerRe: Which is efficient? "" or string.Empty ? Pin
Mohamad Al Husseiny25-Sep-05 8:12
Mohamad Al Husseiny25-Sep-05 8:12 

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.