Ash/Bill I've put up this link a few times now but I may not have seemed directly relevant -
>Grab the contents of the MapInfo window using the HWND into a Picture object - theres example code on the Micrososft >site at http://support.microsoft.com/default.aspx?scid=KB;en-us;q161299. This is an API call that gives you a picture object with the complete map in it - instantaneously. No leak. The situation Ash describes ie memory leak on Save WIndow was the reason I ended up going down this route, although my requirement was just for a snapshot of the screen including highlighting during processing in a VB app. If you hoick the contents of the map window into a picture object in VBA I presume you can then use an Access method or another API call to produce your image file - HTH Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: B. Thoen [mailto:[EMAIL PROTECTED] Sent: 10 February 2004 04:30 To: Simmonds, Ashley (OPT) Cc: 'Mapinfo List (E-mail)' Subject: Re: MI-L memory leak - save window as... iOn Tue, 10 Feb 2004, Simmonds, Ashley (OPT) wrote: > just wondering if this is a documented bug or not. i'm doing some > auto-generated web pages which require bucketloads of map images saved as > PNG, so using integrated mapping through MS Access i issue a command such > as: > > ############## > Save window 666 as "c:\MapImage.PNG" Type "PNG" > ############## > Yea, that's a well-known bug. Summoning a demon by using the sign of the beast for a window id isn't going to help you. Salvation is only for those who upgrade religiously. It was fixed in 7.5. - Bill Thoen "Failure is not an option; it comes bundled with the software." --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 10349 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
