[futurebasic] RE: [FB] A-FB Any Utility for this..?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2002 : Group Archive : Group : All Groups

From: "Edwards, Waverly" <Waverly.Edwards@...>
Date: Tue, 30 Apr 2002 09:50:05 -0400

// FILES$(_fsopen...
// setresload(_false)  // dont load any resources unless requested
// oldResRef = fn curresfile // different in carbon
// resRef = fsopenresfile(...)
// useresref(resRes)

fcodH = get1resource(_"FCOD",1000)
fcodSz = fn gethandlesize(fcodH)
startPtr = [fcodH]
endPtr = (startPtr + fcodSz) - 10
// 10 is number of bytes you are searching for
for ptrLoc = startPtr to endPtr step 2
long if ptrLoc.nil% = 0x4E71
long if ptrLoc.2% = 0x51C8
long if ptrLoc.4% = 0xFFFC
long if ptrLoc.6% = 0x4CDF
long if ptrLoc.8% = 0x0101
// found you signature
// do something
end if
end if
end if
end if
end if
next
// useresref(oldResRef)
// setresload(_zTrue)

Its only a skeleton but its a start


W.

-----Original Message-----
From: Robert Covington [mailto:artlythere@...]
Sent: Tuesday, April 30, 2002 1:08 AM
To: futurebasic@...
Subject: Re: [FB] A-FB Any Utility for this..?


>At 9:13 PM -0400 on 4/29/02, Robert Covington wrote:
>
>
>>  >I have had a series of crashes ongoing for over a year. I have no idea
>>what
>>>the offender is.
>>>
>>>It always accompanies an image import...however I have seen the same 3
>>>instructions when doing non-image operations also.
>>>
>>>
>>>First I see a
>>>
>>>*NOP
>>>DB.L (probably a sic)
>>>I forget the third
>>>
>>>or similar.
>>
>>
>>The Evil Ones are:
>>
>>*NOP      4E71
>>DBF    D0,*-$0002      51C8 FFFC
>>MOVEM.L  (A7)+,D0/A0    4CDF 0101
>
>Get HexEdit, there are OS 9 and OS X versions available.  It can
>search and browse data and resource forks.  It also comes with full
>source code and projects for Project Builder, CodeWarrior and MPW.
>Oh, and it's free and the source is covered under the Mozilla Public
>license.

I would prefer something more automatic...didn't know if RP or Jay or
others could whip up something interesting.

>BTW, does the filesystem busy keep you from doing anything with
>MacsBug?

I can't create a log, though I can do some basic checks I think.

>Can you do a stack chain (SC7 or SC6 IIRC) or does MacsBug
>show a label where the crash is, like the name of a fragment or
>function?

Just says Illegal instruction at _A008 I think. The app name always varies.

>Also is it the NOP that has the asterisk?

Yep.

That's a strange place to
>crash.  I haven't used MacsBug in awhile so I might be off.

It is a living hell. Just killed me a minute ago, again (about 5 times
tonight). Always, these same 3 items show themselves in Macsbug. Only a
restart will salvage anything.

Goes away for weeks, then comes up again and ruins my life for a while.

rc



--
To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>