Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Exception "Import failed"! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; VC# .NET 2.0 Mappoint 2006 Hello guys, My client uses my map application quite a while, but he contacted me ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Exception "Import failed"! Mappoint 2006 Hello guys, My client uses my map application quite a while, but he contacted me for an error with the message: "Import failed" I analized my source and found out that the message is from an exception, where I haven't done any processing with it, except just showing the error message. In the try block I create a pushpin, location and a symbol. But I don't know which one failed. Does anyone know what can cause the exception "Import failed"? Thank you very much for your help. |
| |||
| Re: Exception "Import failed"!
Hello friends, I found the cause of the "Import failed" exception! It is caused when calling objSymbol = Map.Symbols.Add(GetFileName); This was doing well all the time, untill I loaded 997th symbol image. It's like there is a limit of loading symbols, but is there really a limit on loading symbols? It's so frustrating, isn't there a real solution for that? Please, help me out guys! ![]() Extra info: I use the same filename but that shouldn't be the problem right? Everytime I get a position, I draw a new bmp file with the same name and that bmp file is than loaded again when adding a symbol. And that should be more than thousand...but why did it throw an exception? I checked the filename, the bitmap everything seems to be ok, but according to debugging info it fails to load more symbols. ![]() |
| ||||
| Re: Exception "Import failed"!
There is a limit, but I thought the total was more like 65536 - including those pre-loaded. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| |||
| Re: Exception "Import failed"!
Hi Winwaed, Thanks for your post, well there is really a limit on loading symbols. The thing is, it's like loading a library of icons and using thousands of icons seems not to be practical from the Mappoint developers's view. Maybe the main usage of Mappoint is to use it as a Mappoint application itself not as a COM object. So I guess when they were developing Mappoint, they thought it's a bit silly to make it possible to use more than thousand icons for the pushpins. I can agree with them from that point of view (POV). So I have to modify my source to work around. Thank you. Last edited by VC_Man; 02-04-2009 at 09:53 AM.. |
![]() |
| Tags |
| exception, import failed |
| ||||
| Posted By | For | Type | Date | |
| Untitled document | This thread | Refback | 03-12-2009 05:58 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Excel Basics to Blackbelt": A Reference Text for MapPoint Integration | MapAdmin | MP2K Magazine Articles | 1 | 09-20-2008 01:21 PM |
| "Load Xml File in Device Application"-Web Exception | wingsganesh | MapPoint 2006/2009 Discussion | 0 | 12-04-2007 01:04 AM |
| Import "blank" territory names? | jcajacob | MapPoint 2006/2009 Discussion | 0 | 08-10-2005 03:32 PM |
| Mappoint exception "Call was rejected by callee" | jliao81 | MapPoint 2006/2009 Discussion | 1 | 06-03-2005 07:53 AM |
| Do I need "Autoroute Europe", if I install "M | bigtail | MapPoint 2006/2009 Discussion | 1 | 03-23-2004 11:58 PM |