Click here to Skip to main content
15,886,258 members
Home / Discussions / C#
   

C#

 
QuestionCreate Singleton Class Different AppDomain Pin
dataminers14-Oct-09 5:36
dataminers14-Oct-09 5:36 
AnswerRe: Create Singleton Class Different AppDomain Pin
Not Active14-Oct-09 6:09
mentorNot Active14-Oct-09 6:09 
GeneralRe: Create Singleton Class Different AppDomain Pin
dataminers14-Oct-09 10:25
dataminers14-Oct-09 10:25 
GeneralRe: Create Singleton Class Different AppDomain Pin
Not Active14-Oct-09 10:50
mentorNot Active14-Oct-09 10:50 
GeneralRe: Create Singleton Class Different AppDomain Pin
dataminers14-Oct-09 12:02
dataminers14-Oct-09 12:02 
GeneralRe: Create Singleton Class Different AppDomain Pin
Not Active14-Oct-09 14:40
mentorNot Active14-Oct-09 14:40 
GeneralRe: Create Singleton Class Different AppDomain Pin
dataminers14-Oct-09 21:20
dataminers14-Oct-09 21:20 
GeneralRe: Create Singleton Class Different AppDomain Pin
Keith Barrow14-Oct-09 22:59
professionalKeith Barrow14-Oct-09 22:59 
As Pete said in the prevous posts, each AppDomain is in its own memory space and is therefore isolated, marshalling objects between domains is not a facile task. In any case I think the architecture you describe is unsound:


  • It breaks the principles of client / server architecture. If you want to access a common object you should only do this on the server via method calls. There are several ways of persisting the common object between calls / clients
  • By attempting to call methods/set properties on an object instanced on the server from the client, you are opening up a security hole


CCC solved so far: 2 (including a Hard One!)

GeneralRe: Create Singleton Class Different AppDomain Pin
dataminers15-Oct-09 0:47
dataminers15-Oct-09 0:47 
QuestionExcel and C# Pin
antsims14-Oct-09 5:14
antsims14-Oct-09 5:14 
AnswerRe: Excel and C# Pin
Dave Kreskowiak14-Oct-09 5:21
mveDave Kreskowiak14-Oct-09 5:21 
GeneralRe: Excel and C# Pin
antsims14-Oct-09 6:22
antsims14-Oct-09 6:22 
GeneralRe: Excel and C# Pin
Dave Kreskowiak14-Oct-09 6:35
mveDave Kreskowiak14-Oct-09 6:35 
AnswerRe: Excel and C# Pin
Md. Marufuzzaman14-Oct-09 5:53
professionalMd. Marufuzzaman14-Oct-09 5:53 
GeneralRe: Excel and C# Pin
antsims14-Oct-09 6:20
antsims14-Oct-09 6:20 
AnswerRe: Excel and C# Pin
Richard MacCutchan14-Oct-09 6:28
mveRichard MacCutchan14-Oct-09 6:28 
QuestionProblem with quitting an application Pin
Frank Alviani14-Oct-09 4:57
Frank Alviani14-Oct-09 4:57 
AnswerRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 5:20
mveDave Kreskowiak14-Oct-09 5:20 
GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 5:44
Frank Alviani14-Oct-09 5:44 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 6:17
mveDave Kreskowiak14-Oct-09 6:17 
GeneralRe: Problem with quitting an application Pin
Frank Alviani14-Oct-09 8:27
Frank Alviani14-Oct-09 8:27 
GeneralRe: Problem with quitting an application Pin
Dave Kreskowiak14-Oct-09 9:10
mveDave Kreskowiak14-Oct-09 9:10 
GeneralMobile phone programs Pin
Enobong Adahada14-Oct-09 4:45
Enobong Adahada14-Oct-09 4:45 
GeneralRe: Mobile phone programs Pin
EliottA14-Oct-09 4:51
EliottA14-Oct-09 4:51 
QuestionInvalidation, Painting problems Pin
DahrkDaiz14-Oct-09 4:22
DahrkDaiz14-Oct-09 4:22 

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.