Yes, I didn't suspect for a moment the crash is on your side as I am not
sure about 50% of code I wrote :)

Otherwise yes ... now it works and it was just a stupid mistake I didn't see
how it should be before..

>Are you sure that's the returned value of neko_set_loader that you're
>using to load the module ?

I was not returning that anywhere because I could not see where that func.
on xcross is called from and where it returns the loader object... but now
that you said I noticed I already get the loader object in n_load() .. the
function that loads the neko file so I just putted that there as you said
and it works and it gets a velue from c back also..

Great... now I have to figure out what to expose ... thanks a lot so far ..
I will report if I make something smart out of it..

btw ... it seems like 90% of technology for games I use comes from France
(haxe, PTK, and I am looking at Shiva for 3d stuff in future ..)

best regards,
Janko


On 11/3/07, Nicolas Cannasse <[EMAIL PROTECTED]> wrote:
>
> > //I do this because it seeems you did it too at
> > DECLARE_PRIM(get123,0)
>
> You only need this if you're writing a NDLL (this will export the
> function).
>
> >     //here I set loader..
> >     neko_set_loader();
>
> Are you sure that's the returned value of neko_set_loader that you're
> using to load the module ?
>
> argc and argc are the commandline arguments.
> Maybe simply add the following line :
>
>
> alloc_field(loader,val_id("loadprim"),alloc_function(loadprim,2,"loadprim"));
>
> To the example available at http://nekovm.org/doc/vm#embedding_the_vm
>
> > If I have this enable loadprim here then the app loads the module but
> > when I call getx function from C it exits (and throws some unhandeled
> > exception in MSVCRT.dll ..)
>
> That's a crash. It's definitely on the C side.
>
> Best,
> Nicolas
>
> --
> Neko : One VM to run them all
> (http://nekovm.org)
>
-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to