Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| NewMap couldn't be loaded + Vista (activex) 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 |
| |||
| 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 |
| |||
| 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. |
| |||
| Re: NewMap couldn't be loaded + Vista (activex)
thanks for the feedback
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| 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. |
![]() |
| Tags |
| activex, loaded, newmap, vista |
| ||||
| 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 | |
| |
| ||||
| 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 |