Tk Source Code

View Ticket
Login
Ticket UUID: 579879
Title: Photo Masters: use Tcl_AttemptAlloc()?
Type: RFE Version: None
Submitter: dkf Created on: 2002-07-10 22:57:08
Subsystem: 41. Photo Images Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-02-23 02:32:02
Resolution: Fixed Closed By: dkf
    Closed on: 2003-02-22 19:32:02
Description:
Photo masters should use Tcl_AttemptAlloc(),
particularly when the amount of memory being asked for
is large (perhaps over 1MB as an arbitrary threshold?)
as the failure to allocate a large chunk of memory
doeesn't mean that Tcl can't recover from the problem
by reporting an error message back to the script level.
User Comments: dkf added on 2003-02-23 02:32:02:
Logged In: YES 
user_id=79902

Requisite TIP accepted; feature will be in next release of Tk.

dkf added on 2002-07-11 20:22:46:
Logged In: YES 
user_id=79902

Fixed what I can without API changes.  Everything else
requires a TIP, and so is a FRQ.

dkf added on 2002-07-11 17:52:27:
Logged In: YES 
user_id=79902

Yuck, this is harder than it looks because it requires API
changes so that many functions that currently return void
can return an error code...  :^(

Ergo, full fix impossible for 8.4...