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

C#

 
QuestionCan I make this sloppy array better? Pin
MKlucher9-Mar-04 9:44
MKlucher9-Mar-04 9:44 
AnswerRe: Can I make this sloppy array better? Pin
Tom Larsen9-Mar-04 9:56
Tom Larsen9-Mar-04 9:56 
AnswerRe: Can I make this sloppy array better? Pin
LongRange.Shooter9-Mar-04 10:10
LongRange.Shooter9-Mar-04 10:10 
AnswerRe: Can I make this sloppy array better? Pin
MKlucher9-Mar-04 10:17
MKlucher9-Mar-04 10:17 
GeneralRe: Can I make this sloppy array better? Pin
LongRange.Shooter10-Mar-04 4:56
LongRange.Shooter10-Mar-04 4:56 
GeneralSecuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 9:19
hammackj9-Mar-04 9:19 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
Tom Larsen9-Mar-04 10:04
Tom Larsen9-Mar-04 10:04 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 11:22
hammackj9-Mar-04 11:22 
<br />
        internal static int ProcessRun(string[] args, Type userApplicationType) <br />
        {<br />
            SingletonCommunicator comm = (SingletonCommunicator)RemotingServices.Connect(typeof(SingletonCommunicator), SingletonCommunicatorUrl);<br />
<br />
            if (comm.Control == null) <br />
            {<br />
                comm.Control = new SingletonCommunicatorControl();<br />
                IntPtr h = comm.Control.Handle;<br />
<br />
                UserApplicationContext context = (UserApplicationContext)Activator.CreateInstance(userApplicationType, true);<br />
                comm.Control.App = context;<br />
<br />
                comm.Control.App.FirstInstanceRun(args);<br />
            }<br />
            else <br />
            {<br />
                comm.Control.App.SecondInstanceRun(args);<br />
            }<br />
            return 0;<br />
        }<br />
<br />


This is the method it kicks back to on the line: IntPtr h = comm.Control.Handle;

With this exception:
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll

Additional information: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.

Full source code can be found at MSDN link[^]
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter9-Mar-04 10:15
LongRange.Shooter9-Mar-04 10:15 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
hammackj9-Mar-04 11:23
hammackj9-Mar-04 11:23 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
mav.northwind9-Mar-04 20:06
mav.northwind9-Mar-04 20:06 
GeneralRe: Secuitry restrictions with Runtime.remoting Pin
LongRange.Shooter10-Mar-04 3:11
LongRange.Shooter10-Mar-04 3:11 
GeneralTab Control - Disabling a TabPage Pin
Ruchi Gupta9-Mar-04 9:04
Ruchi Gupta9-Mar-04 9:04 
GeneralRe: Tab Control - Disabling a TabPage Pin
Heath Stewart9-Mar-04 13:14
protectorHeath Stewart9-Mar-04 13:14 
QuestionHow to convert html file to doc or rtf format Pin
Inam9-Mar-04 7:11
Inam9-Mar-04 7:11 
AnswerRe: How to convert html file to doc or rtf format Pin
Heath Stewart9-Mar-04 8:47
protectorHeath Stewart9-Mar-04 8:47 
GeneralEditing Images on the fly... Pin
Verdant1239-Mar-04 7:08
Verdant1239-Mar-04 7:08 
GeneralRe: Editing Images on the fly... Pin
Heath Stewart9-Mar-04 8:34
protectorHeath Stewart9-Mar-04 8:34 
QuestionHow to convert html file to pdf Pin
Inam9-Mar-04 7:07
Inam9-Mar-04 7:07 
AnswerRe: How to convert html file to pdf Pin
Heath Stewart9-Mar-04 8:40
protectorHeath Stewart9-Mar-04 8:40 
GeneralMultiple Classes and Functions/Methods Pin
thewebmonster9-Mar-04 6:47
thewebmonster9-Mar-04 6:47 
GeneralRe: Multiple Classes and Functions/Methods Pin
LongRange.Shooter9-Mar-04 6:57
LongRange.Shooter9-Mar-04 6:57 
GeneralRe: Multiple Classes and Functions/Methods Pin
Heath Stewart9-Mar-04 7:02
protectorHeath Stewart9-Mar-04 7:02 
Generalserializing a delegate to a non-public method Pin
Judah Gabriel Himango9-Mar-04 6:11
sponsorJudah Gabriel Himango9-Mar-04 6:11 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 6:35
LongRange.Shooter9-Mar-04 6:35 

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.