Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!bbn!apple!well!brent From: brent@well.UUCP (Brent Southard) Newsgroups: comp.windows.ms Subject: Re: Does DialogBox preserve Data Segment Address? Message-ID: <10693@well.UUCP> Date: 12 Feb 89 22:58:35 GMT Expires: 12 Feb 89 22:58:33 GMT References: <460@msn005.misemi> <1366@agora.UUCP> <3816@metavax.UUCP> Reply-To: brent@well.UUCP (Brent Southard) Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 17 In article <3816@metavax.UUCP> adam@metavax.UUCP (Adam Hoffman -- Mr. Engineering) writes: >I have a feeling that DialogBox (the function) does nothing >special about locking the data segment while it calls PeekMessage or >whatever it calls... You are absolutely correct. Your data segment may very well move during calls to MessageBox, DialogBox, or other functions that directly or indirectly call PeekMessage et all, thus losing the context. You must be very careful not to hold far pointers to local data across such function calls. brent -- Brent Southard, ImageTech Corp. | Everybody's trying to be a friend of mine, Usenet: ...well!brent | Even a dog can shake hands. - W. Zevon CIS: 76657,415 | We fell into love, love's a very deep hole. GEnie: b.southard | - Loudon Wainwright III