11 January 2011, 19:40 | #1 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Dos.library question.
Hi,
If I want to use the dos function Examine, is it safe to use memory allocated with AllocMem, and use fib_SIZEOF as the size, or is it better to use AllocDosObject instead? Any help is appreciated |
11 January 2011, 20:38 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,025
|
AllocMem is safe for all currently existing AmigaOS versions and derivates, but AllocDosObject is better for future compatibility.
Note that AllocDosObject does not exist in Kickstart 1.3 and below, so for these OS versions you need to use AllocMem. |
11 January 2011, 21:03 | #3 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Thanks thomas
In theory this sounds great: Future compatibility Guess I'll just use fib_SIZEOFF, because I have no idea how to use AllocDosObject because of the tag list it needs. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Open-source dos.library | Don_Adan | Coders. System | 273 | 02 September 2020 00:42 |
execute function from dos.library | Foul | Coders. Asm / Hardware | 5 | 08 August 2012 17:56 |
dos.library Open() hangs | MrD | Coders. Asm / Hardware | 15 | 24 July 2012 19:55 |
dos.library v40.4 beta series | Cosmos | Coders. General | 85 | 19 July 2011 01:49 |
dos.library LockRecord() function fails | LamboJay | support.WinUAE | 12 | 24 September 2010 21:05 |
|
|