From: | Sensei |
Date: | 14 Aug 2001 at 01:30:25 |
Subject: | [amiga-c] Re: How do I copy clone |
Czesc Jack!
Dnia 13-Aug-01, Jack York napisa�:
> Yes, I saw that in the docs. But I haven't seen where it says AllocPooled
> calls AllocMem. I'm just going on what was said on the list.
It says nowhere. It's part of internal magic of AmigaOS... But if system opens
window etc. it's likely to use OpenWindow/TagList() for this purpose not
creating layers manually etc. etc. so this applies to AllocPooled() and
AllocMem() as well... I hope so you get the point?
> So in the case
> of allocating memory for a fib, is there any reason to use AllocDosObject
> instead of AllocPooled?
It's always recommended to use system functions which does 'something' not
your own... f.e. before V36 all programmers have to create port using
CreatePort(), but after KS V36 _recommended_ way of creating message port is
using CreateMsgPort() from exec.library. Program which is using system
support functions instead of custom or hardcoded one is more portable and
might works on newer OS which will f.e. expand FileInfoBlock or MsgPort (but
it's not likely to happens)...
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/KYe3qC/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/