Re: Memory leak when adding records in Filemaker
Re: Memory leak when adding records in Filemaker
- Subject: Re: Memory leak when adding records in Filemaker
- From: Bruce Robertson <email@hidden>
- Date: Sun, 13 Jan 2013 23:09:37 -0800
And make sure the layout is in Form View.
On Jan 13, 2013, at 11:00 PM, waynemelrose wrote:
>
> On 14/01/2013, at 4:33 PM, Beatrix Willius <email@hidden> wrote:
>
>> I have this ages old script to transfer data to Filemaker, but since a while there seems to be a memory leak in Filemaker. When I let the example below run the memory goes only up and up. Until Filemaker crashes or there is an error message "-10001, Object or property is the wrong type".
>>
>> property MainMailbox : "s iosdf asödf ,asdf."
>> property MainSubject : "sdf lasdkf asdlfkasdflk "
>> property MessageBody : "asd lkfasdfpäoaädö flsdf sadlfasdf ölasdfalksdf sdfköj asdflk asdfopapäe asödf asldkf asd asödf asdföäasöädfasdf"
>> property OriginatorFrom : "sdfl ksdf asldkfasldfkasldfk"
>>
>> with timeout of 10000 seconds
>> repeat 10000 times
>> tell application "FileMaker Pro Advanced"
>> go to layout "all Fields Mail"
>> save
>> set myNewRecord to (create new record with data {MainMailbox, MainSubject, MessageBody, OriginatorFrom})
>> save
>> end tell
>> end repeat
>> end timeout
>>
>> Does anyone have an idea how to fix this? This problem occurs for both Filemaker 11 and 12. The memory in Filemaker is not reclaimed as it should be when a garbage collector runs. Have tried this, too, by adding a delay of 2 seconds after 10 records.
>>
>> I'm also open to alternative solutions. Except ODBC which is a PITA to set up.
>>
>> Mit freundlichen Grüßen/Regards
>>
>> Trixi Willius
>
>
>
> If you're running this from within filemaker, you should use a filemaker loop. If you're not using it within filemaker, perhaps you should try triggering an embedded script in FileMaker and calling on the script from there.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden