Results 1 to 1 of 1
- 04-14-2010, 10:00 AM #1Member
- Join Date
- Apr 2010
- Rep Power
Using of LabView dll in an ImageJ PlugIn
I developed an ImageJ PlugIn which uses functions contained in dll made in LabView. The using of this dll needs a JNI interface in C language.
So, I have a PlugIn ImageJ which load the dll of the JNI interface which himself load a LabView dll (a library of calculation):
PlugIn ImageJ (Java) -> Interface JNI dll (C) -> Bibliothèque de calcul dll (LabView)
Where -> is a dll load.
This PlugIn work very well during his first using but if we try, in the same ImageJ session, to launch many times this PlugIn (i.e. instantiate many objects PlugIn), the PlugIn stay blocked at the call of the first LabView function.
In order to try to localize the error I replaced the calculation dll in LabView by a classic C dll. With this replacement there is no error and the PlugIn can be call as many times as we want.
On the other side, if I try to launch a PlugIn thanks to a classic Java program by simulating the calling of a PlugIn by ImageJ (i.e. loading and dynamic instantiating of compiled java classes thanks to a ClassLoader), we can also launch the PlugIn many times.
The problem could come from the fact that ImageJ launch a LabView runtime which is not necessary unloaded and which during the second loading could be a problem.
I’m wondering if you could give me some information about that and if someone had ever face this problem.
- By alex1970 in forum IntelliJ IDEAReplies: 0Last Post: 10-16-2009, 01:03 PM
- By bugger in forum EclipseReplies: 1Last Post: 03-26-2008, 10:31 AM
- By Petar in forum Web FrameworksReplies: 0Last Post: 07-30-2007, 11:37 AM
- By simon in forum EclipseReplies: 1Last Post: 07-15-2007, 12:01 AM
- By JavaForums in forum EclipseReplies: 0Last Post: 05-18-2007, 12:28 PM