English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 20 March 2019, 20:01   #3141
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 2,499
Sorry, it's me again and I need your help now:
http://eab.abime.net/showthread.php?...58#post1312258
PeterK is offline  
Old 11 May 2019, 03:45   #3142
Retrofan
Ruler of the Universe

Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,063
Hi Peter, is everything ok about money now?. We are a family here, just tell if you like or by PM. Money is the easiest thing to fix having friends
Retrofan is offline  
Old 22 May 2019, 18:20   #3143
bloodline
Registered User

bloodline's Avatar
 
Join Date: Jan 2017
Location: London
Posts: 277
Sorry if this is the wrong place to ask, but does anyone know why there are the functions addFreeList() and freeFreeList() in the icon.library?

Shouldn’t these functions be in exec?
bloodline is offline  
Old 23 May 2019, 14:39   #3144
voxel
Amiga Nuts!
voxel's Avatar
 
Join Date: Sep 2006
Location: Le Mayet d'Ecole, 03800, FRANCE
Posts: 176
@bloodline ^^)

if you patch/replace an exec function by some more optimized code or else you find the new code (under the same function name) in the software that patches the old function...
voxel is offline  
Old 23 May 2019, 17:38   #3145
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 123
Quote:
Originally Posted by bloodline View Post
Sorry if this is the wrong place to ask, but does anyone know why there are the functions addFreeList() and freeFreeList() in the icon.library?

Shouldn’t these functions be in exec?
Oh well. This is - as always im AmigaOs - a historical accident. The icon.library requires some sort of resource tracking to ensure that all memory allocated with an icon is released as soon as the icon is released. That could also be done manually by checking all the pointers when releasing an (possibly even incomplete) DiskObject on release, but apparently the original creator considered it be more convenient to have this adminstrated by the library, and also considered it to be useful to have these functions exposed to the outside.

In reality, nobody else but the icon.library itself uses these functions. Intuition has AllocRemember(), for example, and exec received memory pools later on.

So, this is all legacy cruft, and an early (and not quite succesful) attempt for resource tracking. New code should not use these functions anyhow, and there are better ways how to track memory, e.g. by exec memory pools.
Thomas Richter is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassicWB Full and icon.library 46.4 Retroplay project.ClassicWB 8 05 August 2018 13:57
WB library conflict/versions Akira support.Apps 3 22 July 2010 18:47
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
What's the latest version of icon.library for OS3.9? NovaCoder support.Apps 3 30 June 2009 15:43
Requesting icon.library v44+... nikvest request.Other 2 16 September 2007 01:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.16790 seconds with 15 queries