Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
43 user(s) are online (33 user(s) are browsing Forums)

Members: 0
Guests: 43

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Strange crash with ARexx and RexxReqTools on Amiga OS4
Just popping in
Just popping in


See User information
@msteed:

That is a very good point, thank you very much!

I changed the check to the following:
if (!glob->prwin || (ULONGglob->prwin == ~|| !glob->prwin->UserPort
      
|| (glob->prwin->UserPort->mp_SigTask != ThisProcess()))
    
glob->shareidcmp FALSE;

Go to top
Re: Strange crash with ARexx and RexxReqTools on Amiga OS4
Not too shy to talk
Not too shy to talk


See User information
@FlynnTheAvatar


That's good blacklisting would have sorted that out so you could isolate the crash point.

Going over the docs, the usage of WindowPtr looks like a bad idea. It's called WindowPtr so should only contain a window pointer or NULL. This is one of those cases where it has too many possible values. While the bug in this case is in ReqTools and must surely be an old one gone unnoticed all these years, it demonstrates a flaw. Only a positive value can be an address which limits it to a 2GB boundary. Of course these pointers were designed around 40 years ago so an "MFP" (or multi function pointer) looks like a great idea.

Given there's so many values that can be there as well as a valid pointer you may need to check specially for 0, -1 and if neither interpret as pointer. The only shortcut I would trust is (!WindowPtr) to check for NULL.

Go to top
Re: Strange crash with ARexx and RexxReqTools on Amiga OS4
Home away from home
Home away from home


See User information
@pjs

Quote:

I just don't recall if there was anything like the OS4
requestchoice/requeststring/requestfile commands in the end
on OS3.


on my A1200 Image (3.5 based) I have

10.Work:UAE/hardisks/workbench/C> list request#?
RequestChoice                     1120 --p-rwed 06-Jul-94 12:39:10
requestDevice                      600 
----rwed 20-Sep-99 08:02:00
RequestFile                       1520 
--p-rwed 06-Jul-94 12:39:10


I suspect requestDevice is custom though....

Go to top
Re: Strange crash with ARexx and RexxReqTools on Amiga OS4
Just popping in
Just popping in


See User information
@pjs

Quote:
I just don't recall if there was anything like the OS4
requestchoice/requeststring/requestfile commands in the end
on OS3.

Both RequestChoice and RequestFile are documented in the printed OS 3.1 DOS manual, so those two go back at least that far. No RequestString, though.

Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 4 ( 0 members and 4 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project