It seems that any use of commands in exec.library will cause the program to hang or even crash the Amiga on ending.
Code: Select all
;## Compile this without debugger support and run from a CLI
If OpenExecLibrary_(36)
PrintN("Exec =>v36")
*mymsgport.MsgPort=CreateMsgPort_()
Delay(100)
If *mymsgport
DeleteMsgPort_(*mymsgport)
Endif
PrintN("Closing....")
Endif
End
Code: Select all
If OpenExecLibrary_(36)
Forbid_()
Permit_()
Endif
End
I guess cos the lib is converted automatically, PB tries to close exec.library when the code reaches the end statement..then wipes out it`s internal pointer to execbase and can`t cleanup and remove itself properly.
And just out of interest, how many people on here still use PB on the Amiga?[/code]