Page 1 of 1

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

Posted: Fri Sep 25, 2015 11:15 am
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,

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

Posted: Fri Sep 25, 2015 11:25 am
by thomasrapp
See AllocSysObject, FreeSysObject.

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

Posted: Fri Sep 25, 2015 11:36 am
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,

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

Posted: Fri Sep 25, 2015 1:30 pm
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.

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

Posted: Fri Sep 25, 2015 10:55 pm
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,

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

Posted: Sat Sep 26, 2015 4:47 pm
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.