I want to use a Dyalog-DLL in C# and have some problems with that.
My Dyalog-Version is 12.0 rel. 5.
I have two classes:
Baseclass:
Code: Select all
:Class ClassA
:using System
:field public testField?123
? ConstructDefault
:Access Public
:Implements Constructor
?
? Construct1(parms)
:Access Public
:Implements Constructor
?
:EndClass
Inherited Class:
Code: Select all
:Class ClassB: ClassA
? ConstructDefault
:Access Public
:Implements Constructor :Base ,?'ABCD'
?
:EndClass
C#-Program:
Code: Select all
using System;
using System.Collections.Generic;
using System.Text;
namespace TestFramework2
{
class Program
{
static void Main(string[] args)
{
//ClassA myTest1 = new ClassA();
ClassB myTest = new ClassB();
}
}
}
Creating an Instance of ClassB will throw a DOMAIN ERROR in ClassA.
Code: Select all
1:DOMAIN ERROR
Construct1[2] :Implements Constructor
Creating an Instance of ClassA first and then ClassB works.
What I am doing wrong?