Actually this would be a very nice solution. How would I go about doing this?
H Dabis ________________________________ From: haithem rahmani <[email protected]> To: Homam Dabis <[email protected]> Cc: Karl Phillip <[email protected]>; [email protected] Sent: Wed, 20 January, 2010 13:34:00 Subject: Re: [directfb-users] Integrating JAVA app and DFB Hi, just a question, Is your "java.awt" based on DirectFB as native backend ? regards. On Wed, Jan 20, 2010 at 1:11 PM, Homam Dabis <[email protected]> wrote: I am not unloading the c .so library. I load it at the start of the java app and then use jni to get to the c function. The C function initialises the DFB instance. All that works fine. > >My problem is getting back to the JAVA graphics after I have released the DFB >instance in the C function. > >Thx. > >H Dabis > > > > ________________________________ From: Karl Phillip <[email protected]> >To: Homam Dabis <[email protected]>; [email protected] >Sent: Wed, 20 January, 2010 11:53:03 >Subject: Re: [directfb-users] Integrating JAVA app and DFB > > >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 > > -- Say: He is God, the One and Only; God, the Eternal, Absolute; He begetteth not, nor is He begotten; And there is none like unto Him.
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
