Path: utzoo!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!otter.hpl.hp.com!hpopd!martin From: martin@hpopd.pwd.hp.com (Martin Wink) Newsgroups: comp.windows.ms Subject: Re: Sound Driver for Windows 3.0 Message-ID: <37140008@hpopd.pwd.hp.com> Date: 14 Mar 91 13:51:38 GMT References: <600001@hpsgwp.sgp.hp.com> Organization: Hewlett-Packard CCG-PWD, UK. Lines: 18 Someone here was getting fatal exits when using the FM sound driver and associated applications. After some time investigating the problem it was tracked down to having a large number of strings in DOS environment variables. Looking inside of the Player's data segment with HeapWalk, you can see a copy of the DOS environment variables in its local heap. If you don't make use of it, it's long been suggested that you should explicitly free 'environ' when your application starts up. None of the standard MS applications I looked at have the variables in their heap. Unfortunately I can't find a reference or example of it being done to say exactly how to do it, but I would guess that LocalFree(environ) would do it. Maybe someone else can refresh me on that. cheers......... martin wink. HP Pinewood Information Systems Division, UK.