works nicely. But I wonder if there is a more legit way of doing this. what is void* replyMsg? I am scared of using it :D
Thank you
Ewen Cheslack-Postava
unread,
Nov 24, 2012, 3:43:06 PM11/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to berk...@googlegroups.com
replyMsg is just an opaque handle for the javascript call that Chromium uses to identify it. Since it's a Chromium pointer value, we cast it to a void* so we don't have to expose that type via the Berkelium interface. We should probably just typedef it to something with a nicer name so it doesn't look so bad :)
Also, this thread was just revived a couple of days ago to get clarification on how this works, and also has an example page that works with the glut_input demo to make calls into C++ and use the return values in the javascript in the page: https://groups.google.com/forum/?fromgroups=#!topic/berkelium/lw87R6aA-cc
-Ewen
mikbal
unread,
Nov 24, 2012, 4:12:35 PM11/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to berk...@googlegroups.com
Thank you for your fast answer :)
But, it crashes with null pointer access.
i used it as you showed it in glutinput
// bind
bindCallback("Translate", "Translate", true);
I dont have a debug build of berkelium to step in.
Was there a known bug that is fixed? I am using a version from January.
Ewen Cheslack-Postava
unread,
Nov 24, 2012, 4:38:38 PM11/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to berk...@googlegroups.com
I can't speak to issues with the windows build since I don't use it. It could just be that null values are not handled properly, which is what Script::Variant() gives you. Try with just a string or number maybe?
-Ewen
mikbal
unread,
Nov 24, 2012, 5:39:02 PM11/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to berk...@googlegroups.com
i have simplified the test application to a its most basic form. still
crashes at
occurs both in debug and release.
i think my build is broken. downloaded old built glut_input.exe from
downloads, tested with my html. and it works.
i don't have the resources to rebuilt berkelium, dont have a fast
internet to download chromium.
i will sent values asynchronously for now. thank god javascript is such
a flexible language.
if any one has a recent visual studio built i would like to test it.