[PYTHONMAC-SIG] Bomberoo with applet memory set too low...

Skip Montanaro skip@calendar.com (Skip Montanaro)
Sun, 22 Feb 1998 22:10:51 -0500 (EST)


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?

    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?

FYI, I'm using MacPython 1.5b3.

Thanks,

Skip Montanaro    | Musi-Cal: http://concerts.calendar.com/
skip@calendar.com | Python Support: http://www.pythonpros.com/
(518)372-5583     | XEmacs: http://www.automatrix.com/~skip/xemacs/tip.html

_______________
PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________