Re: libseed-list Call a Vala Function from Javascript



Hi,

So I tried using just JavaScriptCore however I didn't have much luck
(segfaults were the only results I got)

However I am using Seed and it seems to have gone a bit better, however
it is still not working 100%

The Vala code I am using is here:
http://pastebin.com/A29HjxkG

The generated C code is here:
http://pastebin.com/SF9xfJwF

The Javascript I use to call the function is:
native_print("hi");

What happens is that when I call the function in Javascript, the
function in C/Vala is 'run' however it ends with a Segfault (contents of
which are below) and the string that is supposed to be "hi" ends up as
(null)

SegFault: http://pastebin.com/9bya8FbF

I guess to two issues as that the value in the callback in C, is not as
it should be ("hi") and that I don't know what I need to return from the
callback function (and when I try null, it doesn't work)

Can someone please help?

Thanks again

-- 
Andrew


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]