Script loads into separate AppDomain without errors. Events and llFunctions not working yet.

afrisby
Tedd Hansen 2007-08-18 21:31:35 +00:00
parent f444fe4f87
commit 6faa8d8d68
3 changed files with 5 additions and 4 deletions

View File

@ -233,7 +233,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
"using System.Text;\r\n" +
"using OpenSim.Region.ScriptEngine.Common;\r\n" +
"namespace SecondLife {\r\n";
Return += "[Serializable] public class Script : OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass {\r\n";
Return += "" +
//"[Serializable] " +
"public class Script : OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL.LSL_BaseClass {\r\n";
Return += @"public Script() { }"+"\r\n";
Return += Script;
Return += "} }\r\n";

View File

@ -7,8 +7,7 @@ using System.Threading;
namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
{
[Serializable]
public class LSL_BaseClass : LSL_BuiltIn_Commands_Interface
public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface
{
public LSL_BuiltIn_Commands_Interface m_LSL_Functions;

View File

@ -14,7 +14,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
/// <summary>
/// Contains all LSL ll-functions. This class will be in Default AppDomain.
/// </summary>
public class LSL_BuiltIn_Commands: LSL_BuiltIn_Commands_Interface
public class LSL_BuiltIn_Commands: MarshalByRefObject, LSL_BuiltIn_Commands_Interface
{
private System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
private ScriptManager m_manager;