I know you guys are busy with stuff, so when you have time....

I've been creating C# bindings to EWL to extend the library to Mono and
I'm having a little trouble.

The problem is I can invoke the ewl_init() and ewl_main(), but
ewl_main_quit() doesn't kill the loop.

The only thing that breaks me out of it in fact is calling
ecore_shutdown(); which gives me a 'Power Failure' message.

I believe the problem is that some of variables are going out of scope
when I marshall from C# to C and back again... but... I'm not sure...

I've been going through the ecore and ewl code, and I don't know exactly
what the problem is but this is what I have so far:

if I call ewl_init(); I can't exit without calling ecore_shutdown();

If I call ecore_init(); I exit fine with ecore_shutdown();
but if I call ecore_main_loop_begin(); then ecore_main_loop_quit() does
nothing.

I know ecore is processing events fine, because I can capture a
EWL_DELETE_EVENT an have it fire fine( so the main loop works ).

I'm just wondering where its getting screwed?

I'm going to drop this question to the mono list as well, but I'm just
wondering... Does this sound familiar to anyone? Has anyone else had this
problem binding to anything else?  I'm pretty sure I came across some Ruby
bindings to some of E not to long ago... but of course I can't remember
where.

Everything else seems fairly simple... you guys have done an excellent
job... It's like the only C code I don't mind reading :)

I have had no trouble anything else so far,  the only forseen problem is
ewl_text. I'll have to rename it to Label because I can't have
Ewl.Text.Text = "hello" in C# because it will conflict with the
Constructor.

Any sugestion welcomed.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to