MDestructo moves memory

1382819

Aug 27 1996 5:41PM


MDestructo is in segment MAIteratorRes, which maps on to GRes5. This causes problems at startup when MDestructo is used before the resident segments have been loaded.

We found this problem in DoInitUSegments / AddSegSizes while running under QC. When the CTempHandleLock constructor calls the MDestructo constructor, the segment load causes the handle to be purged before it can be locked.

Moving MDestructo to MAFailureRes fixes the problem. I think this is a reasonable fix because it already was in resident code, it just wasn't resident at startup. Also, everything else in UFailure is in MAFailureRes.


Fix:

Moved it to MaFailureRes.

Note: This is really no longer a potential issue since we are now building 68K as single segment.