Hi Ashley,

Just shutting down the instance of Pro in the integrated environment is a
much better way of doing it. In this case, there is a distinct advantage of
using integrated mapping over MB. The memory leak problem is a real pain but
it sounds like you've handled it well.

Map tiles - whether they be images, SVG, Flash or other visual format, can
form very powerful web-based apps. I've done quite a few now which have pan,
zoom and search facilities. Of course with simply summoning the right map
image to display, you can't get a map to centre anywhere. However, I have
found with sufficient tile overlaps, the search target is always "in the
middle somewhere" and can be marked with an overlaid X graphic. So many web
mapping apps have very simple requirements and a map server is simply not
necessary. I'm sure MapInfo would like to convince customers otherwise!

Finally just a word of warning for any -L'ers who liked the pop-up windows
on my Map Gallery and want to play with Overlib.js - I (and others) spotted
today that there is a hidden counter in the JavaScript (www.nedstat.nl) and
the stats company has now turned off the counter support. To avoid your web
page throwing-up a request for a username/password, follow the instructions
at http://www.nedstatbasic.net/overlib/ to deactivate the counter.

Regards,
Warren Vick
Europa Technologies Ltd.
http://www.europa-tech.com

-----Original Message-----
From: Simmonds, Ashley (OPT) [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2004 23:29
To: [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


thanks for the extensive options, but....

i don't use MBX's, it's all integrated through Access.  besides, the
automated part i've got a handle on now whereby it can just shutdown and
restart MI when resources get low and continue on where it was.

so i don't really have a problem in that area now, however in the future
there will be times when this functionality is required dynamically by the
user and waiting for MI to restart isn't an option, but that's a ways off
yet, and we might have 7.5 by then.

these maps aren't specifically for the web as such, it just that i export
stuff to HTML format because then ANYONE in our department can easily view
the results, rather than having to fumble around with access and mapinfo and
stuff like that.

but i liked that demo you supplied, it's actually probably similar in
concept to some of the first mapping programs i made when it looked like we
weren't going to have a wide distribution of mapinfo.  basically, i took
screen grabs of the entire metro area and "registered" the bounds in a
database.  using this, i was able to have a supremely fast custom mapping
app, because all it did was show a pic and the user could click anywhere on
there and move objects around and stuff because Access could translate the
boundaries from twips to coordinates.  of course there were no layers, and
only a single zoom level, but hey, for what it was it was good.

-----Original Message-----
From: Warren Vick, Europa Technologies Ltd. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 February 2004 7:39 PM
To: 'Simmonds, Ashley (OPT)'; [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


Hello Ashley,

Here's a potential workaround to the memory leak that doesn't involve using
the Windows API. Develop your MB program so that it only generates a sub-set
of your 70,000 total (say x) and then stores it's progress to a file/table
and closes MapInfo (freeing the memory). Then, use Windows scheduling to
kick off an instance of mapinfow.exe with your MBX every y minutes/hours.
You will need to figure out practical values for x and y but you may already
know the average number of images your machine is generating from your 2000
current output. Leave the process over the weekend and then return to the
office on Monday with fingers crossed. Even if you have failures, at least
your output is being saved and you can resume.

Alternatively, use a different version of Pro. This may not necessarily mean
upgrading to the latest version. When generating batch images, I usually go
back in versions to one that has the features I need (e.g. grid support,
etc.). Most of my development is still done in MB v4.5 and tested with Pro
v4.5 and higher.

One final suggestion with batch maps destined for the web. Given that maps
for web use are never very large, sometime labelling is compromised. I found
(and adapted) a JavaScript based pop-up called OVERLIB (easy to find with
Google) and generated map hot spots for my static images. This was
implemented by generating a image map file parallel to each image and using
simple server scripting to insert it into each page. The downside is that I
could only get it working with Internet Explorer but you/others may have
better luck. You can see the results on our web sites "Map Gallery" which
has just over 200 small scale maps. Simply hover your mouse pointer over the
black dots (which are places) for information - even if the place is not
labelled.

http://www.europa-tech.com/gallery.htm

Regards,
Warren Vick
Europa Technologies Ltd.
http://www.europa-tech.com

-----Original Message-----
From: Simmonds, Ashley (OPT) [mailto:[EMAIL PROTECTED] 
Sent: 11 February 2004 01:16
To: [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


alright, i'll give the crispy API solution a shot... and no miss hilton, i
can't use alt-prt scrn, in the last day since writing the initial query i've
produced over 70,000 map images, my fingers would be worn down to bloody
stumps by now.  :)

as an aside, my process at the moment because it's automated and doesn't
need a great deal of speed, just reliability, is closing down and restarting
mapinfo after every couple hundred picture dumps.  my closest guess to the
number of times MI has been auto-restarted during this single process is in
the region of 500 times without a single error.  tee hee.

if you're interested in seeing an example of what's being generated, go
here:
http://vmedia.webclients.internode.on.net/455/index.html

it's nothing special, and certainly not for 56k users as it's designed for
our intranet, but it gives you an idea what i'm doing.  i've so far
generated about 2,000 of these pages.  heh.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 February 2004 8:38 PM
To: [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


Caroline

Keyboard controls are OK for interactive editing but not for an automated
process - Save Window As (now its working properly in 7.5) also gives you
control over the size, resolution and format directly, plus the ability to
put in a comment such as a copyright notice. The API call I posted is a neat
solution to a problem that shouldn't exist - actually, for my purposes its
better but then I'm not keeping the images as Ash needs to.

Paul Crisp

Syntegra
Innovation Place Delta Bank Road Newcastle NE11 9DJ
Tel 0191 461 4522 Fax 0191 460 1987


-----Original Message-----
From: Caroline Hilton [mailto:[EMAIL PROTECTED]
Sent: 10 February 2004 09:59
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


Shoot me if I'm being a little na�ve here, but can't you just use ALT-Prnt
scrn to capture the map windows? This is what I use all the time. I paste
them into a photo editor (Microsoft Photo Editor's the one I'm using at the
moment), then save as whatever image type you need to dump into other
documents.

Is this a different result to Save Window As...?

The resolution's fine.

Caroline

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 10 February 2004 09:44
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: MI-L memory leak - save window as...


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

********************************************************************




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10354



********************************************************************

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

********************************************************************


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10371



---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10380




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 10381

Reply via email to