MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




loading error

This is a discussion on loading error within the Development forums, part of the MapPoint 2006/2009 Discussion category; I am completely newbie in MapPoint and I am trying to use its ocx (Mappoint 2006) in a Delphi 7 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-09-2008
Junior Member
White Belt
 
Join Date: Jan 2008
Posts: 3
loading error

I am completely newbie in MapPoint and I am trying to use its ocx (Mappoint 2006) in a Delphi 7 application (i modified ole sources as in Got Mappoint ActiveX working in Delphi 5)

but now, whenever i try to open a map with

Code:
map: TMappointControl;
..............
    map.NewMap(geoMapEurope);
it gives me an EOleException with the following error message (translated from italian):
Unknown Error. Impossible loading Mappoint

(Original in italian: Errore sconosciuto. Impossibile caricare MapPoint)

i tried the same in VB 2005 Express Edition

Code:
AxMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapEurope)
and

i get a

Quote:
System.Runtime.InteropServices.COMException occurred in AxInterop.MapPoint.dll
with same error message and errorcode = -2147221163

it is like if it is not able to "launch" mappoint instance... maybe i have to set any configuration tip?

thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-10-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: loading error

Hi,

I assume mappoint.exe if you try to run is running normal ?
try to register the exe. with typing: mappoint.exe /registerserver
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-10-2008
Junior Member
White Belt
 
Join Date: Jan 2008
Posts: 3
Re: loading error

Quote:
I assume mappoint.exe if you try to run is running normal ?
yes

Quote:
try to register the exe. with typing: mappoint.exe /registerserver
so, yes, I already tried this... before posting...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: loading error

Hi,

I have no idea. I never tryed it and only use the object model in Delphi. However the thread shows someone who done it also in Delphi7, so it should work. Maybe you have installed the update packs and he did not or way around ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008
Junior Member
White Belt
 
Join Date: Jan 2008
Posts: 3
Re: loading error

so, i found how to solve the problem, just with dos command "regsrv32 ole32.dll"

of course troubles are not finished, because now, it do not give me any error but... just map remain blank, i mean not blank without pushpin etc. i mean the mappoint control shows a empty blank rectangle without any map!!!

i tried to log the ReadyStateChange event and this is the sequence of state changed:

READYSTATE_UNINITIALIZED
READYSTATE_INTERACTIVE
READYSTATE_COMPLETE

so, i think there should be some

READYSTATE_LOADING
and
READYSTATE_LOADED

maybe is there something that goes wrong?

i tried also on vb and c# (2005 express editio) and also in c# by calling EndInit() method of mappoint control.... same result...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
error, loading


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/loading-error-6989.html

Posted By For Type Date
Automating MapPoint with Perl - MapPoint Articles - MP2K Magazine This thread Refback 01-13-2008 01:22 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
map loading problem with MappointControl.ocx yooishung MapPoint 2006/2009 Discussion 1 06-22-2004 09:34 AM
Loading restaurants onto map with single search..... bostonpizza MapPoint 2006/2009 Discussion 0 01-26-2004 09:26 AM
Loading Map takes too much time :( Anonymous MapPoint 2006/2009 Discussion 0 08-29-2003 09:50 AM
Loading some object from the map Anonymous MapPoint 2006/2009 Discussion 0 07-25-2003 06:23 AM
Batch Loading Anonymous MapPoint 2006/2009 Discussion 1 09-26-2002 05:19 PM


All times are GMT -5. The time now is 10:34 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55