Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_Realloc was failing to grow blocks 32k or larger on Wind

Closed / Fixed218479ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:04
OriginalBugID: 675 Bug
Version: 8.0.3
SubmitDate: '1998-09-03'
LastModified: '1998-09-03'
Severity: MED
Status: Released
Submitter: surles
ChangedBy: surles
OS: All
OSVersion: Windows
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1998-09-03'


We were using old Win APIs for allocating memeory.  Apparently GlobalReAlloc does not copy memory to a new heap location when a previosly allocated block is requested to grow to a larger size.  It will fail if there is not enough available space in the same heap location.



The fix is to use the newer Win32 APIs: HeapAlloc, HeapFree and HeapREAlloc. (surles:09/03/98)
welch Closed ticket [218479ffff]. [History diff]2000-10-26 08:23:16
dgp Ticket [218479ffff]: 3 changes [History diff]2001-04-16 22:47:26
Log in (anonymous is fine) to add a comment.