MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




NewMap couldn't be loaded + Vista (activex)

This is a discussion on NewMap couldn't be loaded + Vista (activex) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, if i run my mappoint app on xp all works fine. On Vista, i can create an instance of ...


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

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



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-11-2008
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
NewMap couldn't be loaded + Vista (activex)

Hi,
if i run my mappoint app on xp all works fine. On Vista, i can create an instance of the ocx but i it throws an exception when i try to load a NewMap.

Some code right here:
delegatevoidInitializeOCXDelegate(AxMappointControl ocx);
privatevoid InitializeOCX(AxMappointControl ocx)
{
if (!ocx.InvokeRequired)
{
ocx.Dock =
DockStyle.Fill;
ocx.Visible =
true;
ocx.Appearance = 0;
ocx.BorderStyle = 0;
ocx.NewMap(MapPoint.
GeoMapRegion.geoMapEurope); //Hier wird die Karte definiert auf der gearbeitet wird
}
else
ocx.Invoke(newInitializeOCXDelegate(InitializeOCX), ocx);
}

I got the strange behaviour that on xp InvokeRequired = false, but on vista sometimes (don't know for sure)InvokeRequired = true, when i try to debug the invoke call the debugger ignores it (don't know if it is executed, it just moves on).

Has someone ever had the same issue on a vista pc or has any idea?

Best Regards
J
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 02-11-2008
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: NewMap couldn't be loaded + Vista (activex)

Hi, like in another post it's the NX_COMPAT flag set in your exe by
vs2008.

....tools/.../vsvars32.bat (so editbin.exe finds its dlls - can't remember exact path)
editbin.exe /NX_COMPAT:NO "file.exe"

solved the problem for me

good luck
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 02-12-2008
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: NewMap couldn't be loaded + Vista (activex)

Little backgroundknowledge,
since end 2004/early 2005 intel processors have a nx(not execute) bit .
AMD had that already a little earlier.
However, this enables the DEP of WindowsXP SP2 and higher (Vista).

My current Notebook is from early 2004, therefore the processor has no
nx bit -> all works fine even with set nxcompat bit in my exe

On the other machines, mostly core2duo laptops and vista the nx bit
takes action and prevents the execution of the atl 7.1 ... i can get
the structure of the ocx (strange to me) but all calls get rejected.

The only solution is to shut down dep (admins will kill you) or turn off the switch in your exe.
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 02-15-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: NewMap couldn't be loaded + Vista (activex)

thanks for the feedback
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 03-11-2008
Junior Member
White Belt
 
Join Date: Dec 2003
Posts: 6
Re: NewMap couldn't be loaded + Vista (activex)

I have follow the steps above, but now I receive the following error message when I try to load a new map:

"Your registry settings for this application were not copied correctly. to correct these settings, run setup again for this application from the location where you originally installed it."

Any ideas?

Thanks & regards,

Julio

Last edited by julior; 03-12-2008 at 12:26 PM.
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
activex, loaded, newmap, vista


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/newmap-couldnt-loaded-vista-activex-7109.html

Posted By For Type Date
MapPoint 2006 Discussion - MapPoint Forums This thread Refback 02-19-2008 08:00 AM
Windows Vista News » NewMap couldn't be loaded + Vista (activex) This thread Pingback 02-11-2008 12:41 PM
Najlepsze Programy, Recenzje, Informacje. » Blog Archive » NewMap couldn't be loaded + Vista (activex) This thread Pingback 02-11-2008 12:38 PM
NewMap couldn't be loaded + Vista (activex) This thread Pingback 02-11-2008 12:29 PM
MapPoint News - MP2K Magazine This thread Refback 02-11-2008 12:12 PM

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
VB6 newmap crash SPearse Development 1 10-23-2007 11:18 AM
newmap yvdp MapPoint 2006/2009 Discussion 7 05-21-2004 05:48 PM
Can a MapPoint control be conditionall loaded or late bound? frankp MapPoint 2006/2009 Discussion 2 02-28-2004 10:50 PM
newmap problem with Mappointcontrol in VB.NET Anonymous MapPoint 2006/2009 Discussion 3 01-02-2004 05:29 PM
disable loaded pin sets in mappoint 2002 Anonymous MapPoint 2006/2009 Discussion 1 04-22-2003 09:52 PM


All times are GMT -5. The time now is 07:18 PM.


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