Could someone test this please ?

AmigaOS specific forum
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Could someone test this please ?

Post by Doobrey »

Hi, Just trying to track down a bug in PB, so I can have another list ready for Fred when he returns :twisted:

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
Even something very simple like this fails on exit..

Code: Select all

 If OpenExecLibrary_(36)
    Forbid_()
    Permit_()
 Endif
End
I`ve got an idea of why it fails, because a new exec lib converted with FDConvert still has these problems.
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]