After loading the .so file and creating the dfb, if you unload the .so you
will have problems!

You could do a library (.so) that exports all functions you need to use, and
then load it when your java application initializes. Remember to unload the
.so file only when the java app is done.

[]'s

On Wed, Jan 20, 2010 at 8:33 AM, Homam Dabis <[email protected]> wrote:

> Hi,
>
> I have an unusual situation.
>
> My main application is a JAVA app. using awt graphics. Additionally, I have
> a C app using directfb.
>
> The task I have is to integrate the main JAVA app. with the C app. I can do
> this by loading the C app. as a .so from JAVA and  use JNI to call it.
>
> Problem:
>
> JAVA app starts graphics. Upon calling the DFB app., a DFB instance is
> created and that runs fine. However, when I exit the DFB app. and go back to
> JAVA, I lose all graphics. The JAVA app. is still alive and I can reload and
> run the DFB app. in the same session but blindly i.e. I just use the same RC
> key to start and exit the DFB app.
>
> I guess DFB is getting hold of the FB and that is messing up the JAVA FB
> control.
>
> Does anyone have any suggestions/ideas on how to solve such a problem?
>
> Thanks
>
> Homam.
>
>
> _______________________________________________
> directfb-users mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
>
>
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to