4 messages in net.java.dev.jna.usersRe: [jna-users] Synchronized output b...
FromSent OnAttachments
Muath A. KhalafApr 9, 2009 3:28 pm 
LYou...@gkservices.comApr 9, 2009 3:40 pm 
Timothy WallApr 13, 2009 6:06 am 
LYou...@gkservices.comApr 13, 2009 7:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Synchronized output between Java and cActions...
From:LYou...@gkservices.com (LYou@gkservices.com)
Date:Apr 9, 2009 3:40:50 pm
List:net.java.dev.jna.users

It's best to route all logging through one funnel.

Levi Yourchuck Senior Programmer Analyst G&K Services Phone: 952 912 5828 www.gkservices.com Enhancing Image & Safety Through Innovation This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.

"Muath A. Khalaf" <moa@yahoo.com> 04/09/2009 05:29 PM Please respond to use@jna.dev.java.net

To use@jna.dev.java.net cc

Subject [jna-users] Synchronized output between Java and c

Hi, I am calling a c library from Java using JNA on Ubuntu Linux 8.04. The problem is when I try to print output for debugging the output of the c library itself is not synchronized with the Java output. So for example if I call function printDfa(DFA* dfa) in c from within Java as in the following code ,

(Note that dfa1, dfa2 are Java objects that encapsulate the corresponding c structures of type DFA and printDfa calls the actual c function printDfa.)

System.out.println("printing dfa1"); dfa1.printDfa(); System.out.println("printing dfa2"); dfa2.printDfa();

the printDfa output got mixed with the debugging messages before and after this function.

Is there any suggested solution to this other than reimplementing the c function in Java. Also what is the best way to debug the java program along with the c library as a whole unit. Is there a way to use Java debugger.

Thanks Muath