Re: log command problem?
Re: log command problem?
- Subject: Re: log command problem?
- From: Dave <email@hidden>
- Date: Fri, 7 Jan 2011 01:03:37 -0600
Further research on this particular code instance implies to me maybe some internal low level data is being clobbered earlier and these errors are just secondary effects. Adding a few more string operations can fix it or make the problem worse by crashing the app ("EXC_BAD_ACCESS".) I've tried several variations of code, including your hint of putting parens around the log operands. Sometimes this or just adding a little more code or log statements fixes things and sometimes it doesn't. I haven't tested with GC off in all cases, but when I disabled GC the problem has always gone away.
For now, my guess is I have a misusing-an-object bug in my code (which is all AppleScript) or I'm hitting a subtle memory release bug somewhere in the run-time support code.
Will report any further discoveries on this issue.
-- Dave
On Jan 6, 2011, at 11:47 PM, Shane Stanley wrote:
> On 7/1/11 4:22 PM, "Dave" <email@hidden> wrote:
>
>> set startHour to startComponent's hour() as integer
>> set endHour to endComponent's hour() as integer
>> log "GMT startHour " & startHour & ", endHour " & endHour
>
> So does using this make any difference?
>
> set startHour to startComponent's hour() as integer
> set endHour to endComponent's hour() as integer
> log ("GMT startHour " & startHour & ", endHour " & endHour)
>
> I'm a bit nervous about relying on automatic coercions in a log command
> without forcing evaluation.
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden