English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 11 January 2011, 19:40   #1
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,751
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
Thorham is offline  
Old 11 January 2011, 20:38   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
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.
thomas is offline  
Old 11 January 2011, 21:03   #3
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,751
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.
Thorham 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
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

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 20:17.

Top

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