All Questions
9 questions
0
votes
0
answers
90
views
How to create new WPF Application in the same AppDomain after shutdown the old one [duplicate]
I'm using IronPython as a scripting extension which was hosted in another application. I will be in the same AppDomain forever unless I restart the parent application which is very costly to do (...
1
vote
0
answers
267
views
What could cause slowness when calling methods from a separate app domain?
I setup an AppDomain for my IronPython to run in:
var appDomainSetup = new AppDomainSetup { ApplicationBase = sandboxPath };
var sandbox = AppDomain.CreateDomain("Sandbox", evidence, appDomainSetup, ...
1
vote
0
answers
665
views
IronPython with restricted AppDomain
I'm running into a problem with long startup times when I try to run an IronPython script engine in an AppDomain with restricted permissions. Can someone provide a canonical example of how to do this ...
1
vote
0
answers
135
views
IronPython double casting incorrectly when targeting x64 platforms
I'm running into a strange issue in IronPython when I use a custom AppDomain and PermissionSet. For some reason, casting doubles to floats is not working correctly when the PermissionSet is not ...
1
vote
0
answers
635
views
Permissions for appdomain to run Ironpython in a sandbox
Hey guys I'm trying to figure out what permissions I need to allow me to run ironpython in an appdomain but deny read and write privileges as well as internet privileges.
Here is my IronPython class:
...
1
vote
0
answers
267
views
Add event across AppDomain
Alright, so I have this python code
_events.GameStart += method
method():
DoStuff
and on the c# side
[SecuritySafeCritical]
public class ScriptEvents: MarshalByRefObject
{
public event ...
1
vote
1
answer
460
views
Assigning ironpython method to C# delegate, this method will be passed across appDomains
Consider the following scenario:
AppDoamin 1:
public delegate bool Delegate1(class1 c1,string p);
class class1
{
public bool method1(Delegate1 d, out IEnumerable<string> partNumbers)
...
3
votes
1
answer
4k
views
Passing objects across Appdomains
I am having issues while passing objects across Appdomains.During further investigation I found that the issue is due to the IronPython object not been Serialized. This IronPython object is derived ...
6
votes
1
answer
4k
views
How to host an IronPython engine in a separate AppDomain?
I have tried the obvious:
var appDomain = AppDomain.CreateDomain("New Domain");
var engine = IronPython.Hosting.Python.CreateEngine(appDomain); // boom!
But I am getting the following error message: ...