Hi Davide,
When creating the CLR object, the constructor is called, registering inlets and outlets. This has the advantage that the objects would be more lightweight (method table is needed only once per class, not per instance) and that loading is faster.
well, for that I'd use the pd-equivalent class_setup().. (that's waht external developers are used to..) ..then a setup() function for selectors and class constructor for inlet/outlets ?
WDYT ?
as proposed earlier i would use static Main, because that's the one normally used in C# app setup. I'm currently wrapping my proposals into code...
I've just created an xcode project where i'll track down the crashes and restructure the code. I'll propose the changes to you before comitting them.
btw, we really don't know why but with plans we noticed that in osx clr will crash if compiled against a packaged version of mono, if you install mono using fink it won't crash!
I'm experiencing crashes right at the start when i call the mono_jit_init function (from the Mono framework, not fink). There's not much one can do about it - other than trying the latest Mono version, which i'm downloading just now.
greetings, Thomas