IT Heroes Posted October 6, 2010 Posted October 6, 2010 Hi, Same scenario as my other post. I'm using the fmpro object in a different thread than started it, from a java window that keeps running alongside filemaker. I find that when using the object it hangs for a while before anything happens. CPU usage doesn't increase, so it is just waiting. Is this because it isn't meant to be called from another thread?. Is there any way i can get it to work properly? Thanks, Ryan
csad Posted June 3, 2011 Posted June 3, 2011 Hello, i have exactly the same problem! i use Win 7 and FMA 10 Did you solved the problem? Best Regards
IT Heroes Posted June 3, 2011 Author Posted June 3, 2011 Hi, No I didn't solve it. I concluded that it wasn't designed for what I was trying to do there. I was using it to execute sql queries, so I ended up just querying the filemaker server directly using the jdbc driver. I've also had some other issues with threading and the fmpro object. So I figured I should use it in a "simpler" way . I call filemaker scripts from the java window by means of executing a temporarily created .fp7 file which then runs the script I want to run in filemaker. The only drawback is that it has a lot of recently opened files in filemaker . So I can get filemaker to talk to the java application, but I can't get the java application to talk back to filemaker (by means of invoking methods on the fmpro object). So maybe the fmpro object should only be used while the actual filemaker script that it is called in is executing, not at other times... I didn't get a response from devs and I didn't want to pay for support, so I am only guessing... . But then the delayed script example they have calls the fmpro object from another thread... Don't know, didn't get it to work reliably so I ended up doing it a different way .
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now