Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpcndpc!jjw From: jjw@hpcndpc.CND.HP.COM (Jimmy Wright) Newsgroups: comp.windows.ms.programmer Subject: Re: HELP with GlobalDosAlloc Message-ID: <36330005@hpcndpc.CND.HP.COM> Date: 15 Apr 91 19:22:20 GMT References: <26158@hydra.gatech.EDU> Organization: HP Colorado Networks Division Lines: 12 I have used GlobalDosAlloc successfully to communicate between a DLL and a DOS TSR. I don't make the GlobalHandle() call though. I just copy stuff in/out of the buffer using the Selector from the DLL and use the Segment from the DOS Tsr. I don't know if the code you posted is exactly the same as your program but you really should be checking the return codes. If GlobalHandle() fails with a NULL pointer then this would explain the behaviour you have seen. JJ