[PYTHONMAC-SIG] Bomberoo with applet memory set too low...
Steve Spicklemire
steve@estel.uindy.edu
Mon, 23 Feb 1998 05:59:52 -0500 (EST)
I like option-drag... it's consistent with the interpreter
that way (you can option-drag to it as well...)
-steve
>>>>> "Jack" == Jack Jansen <Jack.Jansen@cwi.nl> writes:
>> My little Python application does things the Unix way --
>> assume you have infinite virtual memory and suck an entire file
>> in with a single read() or readlines() call. This has some
>> rather negative consequences on the Mac. The most troublesome
>> is that I get an Error 10 bomb dialog if I haven't set the
>> applet's min size/preferred size values high enough. Two
>> questions:
>>
>> 1. Shouldn't Python crap out more gracefully in this situation?
Jack> Definitely... It isn't always simple, though: if it is
Jack> Python who does the malloc that fails it usually gets turned
Jack> into a MemoryError exception, but if it's the underlying C
Jack> library things usually get messy. I can't seem to reproduce
Jack> this bomb, though: do you have example code?
>> 2. Can BuildApplet be modified to set defaults for
>> min/preferred sizes so users (programmers) don't have to
>> remember to pop up the applet's info box and increase those
>> values?
Jack> I'm not sure I like this. BuildApplet is interface-less at
Jack> the moment, and I'd like to keep it that
Jack> way. Option-dropping a python source on buildapplet could
Jack> cause a dialog to appear, but then people are likely to
Jack> forget to option-drop.
Jack> What do people think? -- Jack Jansen | ++++ stop the
Jack> execution of Mumia Abu-Jamal ++++ Jack.Jansen@cwi.nl | ++++
Jack> if you agree copy these lines to your sig ++++
Jack> http://www.cwi.nl/~jack | see
Jack> http://www.xs4all.nl/~tank/spg-l/sigaction.htm
Jack> _______________ PYTHONMAC-SIG - SIG on Python for the Apple
Jack> Macintosh
Jack> send messages to: pythonmac-sig@python.org administrivia to:
Jack> pythonmac-sig-request@python.org _______________
_______________
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________