Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4934 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

  • 7 months later...
Posted

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 :).

This topic is 4934 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.