Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!roper From: roper@june.cs.washington.edu (Michael Roper) Newsgroups: comp.windows.ms Subject: Re: Does DialogBox preserve Data Segment Address? Message-ID: <7226@june.cs.washington.edu> Date: 9 Feb 89 20:53:30 GMT References: <460@msn005.misemi> <1366@agora.UUCP> <3816@metavax.UUCP> Organization: U of Washington, Computer Science, Seattle Lines: 14 adam@metavax.UUCP writes: > Does anyone know if Windows locks the data segment while > a DialogBox is active? I have a feeling that DialogBox > (the function) does nothing special about locking the data > segment while it calls PeekMessage or whatever it calls... Windows locks your data segment when you get the CPU. As far as I know, the only way it can move unexpectedly during this period is if you do a LocalAlloc() or LocalRealloc(). However, this will result in a move only if the heap must be extended and then only if it can't be extended without moving the segment. Mike Roper