Hi-
I'm experimenting with writing/running executable Factor scripts.
A simple script in a file titled "hello" -

#! /Applications/factor/factor -script
USING: io ;
"hello world" print

-does its thing in the terminal, but on the way echos "just leaking", thus:

➜  ~ git:(master) ✗ factor "/Users/cwalston/factor/hello" run-script
2014-02-11 00:09:08.391 factor[7273:903] *** __NSAutoreleaseNoPool():
Object 0x10a500 of class NSPathStore2 autoreleased with no pool in place -
just leaking
...(lots more of the same)
2014-02-11 00:09:08.439 factor[7273:903] *** __NSAutoreleaseNoPool():
Object 0x108690 of class NSCFData autoreleased with no pool in place - just
leaking
hello world
➜  ~ git:(master) ✗

I'm on a Mac. Seems to be expecting an NSAutoReleasePool, so I amend the
script:

#! /Applications/factor/factor -script
USING: io cocoa cocoa.application cocoa.classes ;

IMPORT: NSAutoreleasePool
[ "hello world" print ] with-autorelease-pool

But I get the same warning.
Can anyone enlighten me as to what's called for here, as far as Factor
code is concerned? Do I have to enable OS garbage collection? If so, how
would I do that?

Thanks kindly,
~cw

-- 
*~ Memento Amori*
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to