• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: log command problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: log command problem? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: log command problem?
  • Next by Date: textShouldEndEditing or textDidEndEditing
  • Previous by thread: Re: log command problem?
  • Next by thread: Re: log command problem?
  • Index(es):
    • Date
    • Thread