The Grendel Project - Bugtracker

Back | Home | Add a new Bug | Query Bugs | View Reports | Create a new Account | Read Documentation
Email: Password: Remember me
Find Bug


Bug #150 - Cached GMC code block freed multiple times

Return to bug list
Next
Reporter: michiel at grendelproject dot nl Created: 02-01-2005
Project: Priority:
Component: Severity:
Version: OS:
To be Closed in Version Database:
Closed in Version Reported on Site
Summary: Status:
URL: Resolution:
Assigned To: Add CC:
Dependencies: #75
Add Dependency:
Remove Dependency:

Remove selected CCs:
Additional Comments:



You must be logged in to modify this bug
Attachments: Create Attachment
Name Size Type Created  
No attachments


Comments:

Posted By: michiel at grendelproject dot nl
Date: 10:04 PM On 02-01-2005
In area.pas, GNPCIndex.Destroy() the lines:

<pre>
if (prog <> nil) then
prog.Free();
</pre>

trigger a null-pointer exception when a given code block is used multiple times (and thus cached).

Posted By: michiel at grendelproject dot nl
Date: 10:10 PM 02-01-2005
Introduced by Bug #75.

Posted By: michiel at grendelproject dot nl
Date: 10:11 PM 02-01-2005
Fixed by making the code cache responsible for freeing code blocks:

codeCache.ownsObjects := true;