[PYTHONMAC-SIG] Bomberoo with applet memory set too low...
Jack Jansen
Jack.Jansen@cwi.nl
Mon, 23 Feb 1998 11:44:47 +0100
>
> 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?
Definitely... It isn't always simple, though: if it is Python who does the
malloc that fails it usually gets turned into a MemoryError exception, but if
it's the underlying C library things usually get messy. I can't seem to
reproduce 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?
I'm not sure I like this. BuildApplet is interface-less at the moment, and I'd
like to keep it that way. Option-dropping a python source on buildapplet could
cause a dialog to appear, but then people are likely to forget to option-drop.
What do people think?
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm
_______________
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________