[Solved] Exec Replacement for Create/Delete Msg/IO Port

This forum is for general developer support questions.
Post Reply
AmiDARK
Posts: 40
Joined: Thu Oct 20, 2011 9:23 am

[Solved] Exec Replacement for Create/Delete Msg/IO Port

Post by AmiDARK »

Hello.

I had difficulties to setup MSG port and IO port for the program I did...
Now that these functions are obsolete, I'd likt to update them to new methods...

In SDK 53.30 Autodocs exec.doc, these functions are always in :( Not updated.

Does someone can give me a clue on how I can replace these functions :
- CreateMsgPort
- DeleteMsgPort
- CreateIORequest
- DeleteIORequest

Thank you.
Regards,
Last edited by AmiDARK on Fri Sep 25, 2015 9:56 pm, edited 1 time in total.
Sam440EP - AmigaOS 4.1 Final Edition
User avatar
thomasrapp
Posts: 310
Joined: Sat Jun 18, 2011 11:22 pm

Re: Exec Replacement for Create/Delete Msg/IO Port

Post by thomasrapp »

See AllocSysObject, FreeSysObject.
AmiDARK
Posts: 40
Joined: Thu Oct 20, 2011 9:23 am

Re: Exec Replacement for Create/Delete Msg/IO Port

Post by AmiDARK »

Ok.
In fact they want to reduce the amount of library functions creating more complex replacements. Right ?

Thank you for this information, I will check doc to see how they work.

Regards,
Sam440EP - AmigaOS 4.1 Final Edition
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: Exec Replacement for Create/Delete Msg/IO Port

Post by broadblues »


Ok.
In fact they want to reduce the amount of library functions creating more complex replacements. Right ?
No, there AllocSysObject() option ensures correct memory allocation, allows options for future resource tracking etc, they are more future proof.
AmiDARK
Posts: 40
Joined: Thu Oct 20, 2011 9:23 am

Re: Exec Replacement for Create/Delete Msg/IO Port

Post by AmiDARK »

BroadBlues : I understand your words ... But I complete with "And more complex because there are several uses of the same functions" ;)

I've made the changes. The program compiles. I hope I used the correct tags for the job to be done.

Thank you.

Regards,
Sam440EP - AmigaOS 4.1 Final Edition
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Re: Exec Replacement for Create/Delete Msg/IO Port

Post by xenic »

AmiDARK wrote:BroadBlues : I understand your words ... But I complete with "And more complex because there are several uses of the same functions" ;)
It also precludes the use of memory pools or an AlloctaskMemEntry() list for easily freeing all memory at once when exiting a program.
AmigaOne X1000 with 2GB memory - OS4.1 FE
Post Reply