Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Access SharpDevelop classes (ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) from debugged code

$
0
0

Hi,

I'm using SharpDevelop 3.2.1. I was trying to access sharpDevelop static classes from the debugged project but I'm getting a NullReferenceException. For example , the debuuged program (process) is not seeing the value of ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm even it is instanciated in sharpDevelop. 

I'm not sure if it's a cross domain problem, but can any one have an idea about the problem and how to get access to the value of sharpdevelop static classes.

Of course the domain in wich dubugged program is executed is created in the ManagedCallback class by the following function:

public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)

{

EnterCallback(PausedReason.Other, "CreateAppDomain", pAppDomain);

pAppDomain.Attach();

ExitCallback();

}

 

Can any one help please,

Regards.


Viewing all articles
Browse latest Browse all 1764

Trending Articles