[comp.sys.mac.programmer] Checking CODE resources

bradn@tekig3.LEN.TEK.COM (05/31/89)

Now that my VirusAlarm routine has been posted, I can ask a couple of
stupid questions:

    Why is it that CODE resources in memory seem to contain different data
    under different versions of the System?

I was originally planning to have VirusAlarm calculate a CRC of the CODE
resources, then complain if the contents of a CODE resource had changed.
The problem I ran into is that each version of the System seems to produce
different changes in the in-memory versions of the CODE resources.

    How can I get a fresh, private copy of a given CODE resource
    without disturbing the copy that is in memory?

For example, assuming that various System versions alter the in-memory
copies of CODE resource jump tables (for instance), I'd like to do a CRC
on a fresh copy of the original CODE resource on disk.



Brad Needham
bradn@tekig3.TEK.COM    (I'm not at tekig4 any more)