Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script step crashes Filemaker

Featured Replies

This is a script that launches a modal picker window. The last script step inserts the cursor into a field for typing. As you can see I have tried 3 methods for inserting the cursor.

 

After a variable number of uses FileMaker crashes. It crashes with any of the 3 script steps that insert the cursor in the field.

 

When the script is run from the debugger the cursor inserts properly and FileMaker does not crash.

 

When the last script step is disabled it does not crash but you now have to click into the field for typing.

 

I am at a loss as to how to get this to work. An image of the script is attached.

 

I'm working in FMPA 12.0v2 on Windows 8.

 

post-95398-0-60744300-1384239429_thumb.j

 

Further testing shows the crash is not caused by that script step. Removing the script step in question increases the number of iterations before the crash occurs so it appears it is contributing but is not the primary cause. The problem behaves exactly like a memory leak but I have no way to follow system memories and see what's going on. Any advice on debugging this script would be appreciated.

Edited by qube99

You should update to FM 12.04 - 12.02 is ancient and had many bugs.

 

Then try again.

  • Author

I upgraded to 12.0v4 and that seems to have solved the problem. I've run a rather large number of iterations with no problems.

 

Thanks!

  • Author

I tested this script again today and it crashed after 50-60 iterations. Disabling the insert cursor script step eliminates the crash up to > 100 iterations (I haven't tested beyond 100). Upgrading to v4 sure slowed the leak down a lot but did not eliminate it.

 

The client does not envision ever going past 10 iterations so we decided to live with it and move on. We'd rather insert the cursor and crash after 50 iterations than have to click that field each time.

 

We ran into a memory leak like this one in a C++ application that could not be cured even by CodeWarrior engineers. We hacked it by manually clearing the memories each loop which slowed us down a lot.

 

Maybe FM could fix this bug in a similar fashion.

 

Should I submit a bug report?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.