Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |   Code Community

Discussion Forums

The online community for users of Map Suite GIS components

Windows Vista and 64-Bit Usage Notes
Last Post 03-16-2010 09:39 PM by James. 12 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ThinkGeoUser is Offline
ThinkGeo Support
MVP
MVP
Posts:447
Avatar

--
12-03-2008 04:16 AM

Map Suite Sample Apps and Permissions on Windows Vista

If you are using Map Suite on Windows Vista, you may receive an error such as UnauthorizedAccessException when launching or working with the bundled sample applications.

UnauthorizedAccessException Error Dialog

You can resolve this problem by running the sample apps as administrator. To do so, right-click the sample applications shortcut and select "Run as administrator."

Context menu: running the sample apps as administrator

Properly Configuring Your Compile Settings in a 64-Bit Environment

Map Suite 3.0.131 introduces enhanced support for 64-bit operating system environments. When developing in a 64-bit environment, please ensure that you are compiling your solution with the x86 platform option in Visual Studio.

Setting the x86 platform option

Configuring OLEDB.4.0 for SQL Queries in a 64-Bit Environment

If you are working in a 64-bit environment, you may receive the following exception when using the SQL Query function in Map Suite:

OLEDB.4.0 Unhandled Exception Message

If you receive this message, you will need to register OLEDB.4.0 manually.

Thanks,
ThinkGeo Support

Tags: Vista, 64-bit
funkyUser is Offline
Level 1
Level 1
Posts:1
Avatar

--
01-22-2009 09:19 PM

we hope that Map Suite DeskTop Edition run in x64 compiling environment ..
Please make them for x64 progrmmers..

DavidUser is Offline
MVP
MVP
Posts:1260
Avatar

--
01-22-2009 11:34 PM

Funky,

We have the latest version of the Desktop Edition working great with native 64 bit applications. We release it yesterday, try it out.

David

- Need sample code? Check out the Map Suite Code Community at http://code.thinkgeo.com
ChristianUser is Offline
Level 3
Level 3
Posts:68
Avatar

--
08-19-2009 07:34 AM
We are receiving the above message. You say "If you receive this message, you will need to register OLEDB.4.0 manually." but how do we do this?
DavidUser is Offline
MVP
MVP
Posts:1260
Avatar

--
08-24-2009 11:56 AM
Christian,

From my understanding and reading lots of long rants on message boards Microsoft is not porting Jet (The access engine) to 64 bit. This mean that the SQL query on pure 64 bit applications will not work for shape files. What we are doing is looking for an alternative however we have not found anything that has the license terms we need along with having good ANSI 92 compliance. You application can run on 64 bit machines however you are forced to set the CPU type to X86 in the drop down in visual studio next to the debug profile, see screen shot above. I just tried it with some samples and it worked well.

David
- Need sample code? Check out the Map Suite Code Community at http://code.thinkgeo.com
Lars I.User is Offline
Level 3
Level 3
Posts:75
Avatar

--
11-25-2009 03:40 AM
I have just managed to get Map Suite Web Edition up and running with FDO on a 64 bit Windows 2003 Server.

This post explains the details: http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/6036/afv/topic/Default.aspx
--
Best regards
Lars I. Nielsen
GisPro.dk
JamesUser is Offline
MVP
MVP
Posts:464
Avatar

--
11-26-2009 12:02 AM
Lars,

Thank you for your sharing.
Think what? Think Geo!
RobUser is Offline
Level 4
Level 4
Posts:170
Avatar

--
03-05-2010 08:59 PM
Any progress on finding an alternative to Microsoft Jet drivers? I run into problems with this horrible piece of garbage all the time, and in 32bit mode.

Most recent problem:
ShapeFileFeatureLayer.QueryTools.ExecuteQuery("SELECT * FROM LayerName_123");
In my environment, I have many many shapefiles in that format in a directory (LayerName_Identifier). The Jet driver finds the need to convert it to its DOS 8.3 equivalent filename (LayerN~1.dbf). So it tries to execute "SELECT * FROM LayerN~1", but errors out on the query since the file doesn't exist.

Any alternatives out there to querying a DBF?
YaleUser is Offline
MVP
MVP
Posts:1771
Avatar

--
03-07-2010 09:59 PM

Rob,

Thanks for your post.
 
I tested the following code and it works fine in Win7 32 bit OS. Here the data (USStatesFor_SqlTest.shp) is copy of USStates.shp.

private void SqlQuery_Load(object sender, EventArgs e)
        {
            winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
            winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
 
            WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();
            winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);
 
            ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"..\..\SampleData\Data\USStatesFor_SqlTest.shp");
            worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green));
            worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.LineJoin = DrawingLineJoin.Round;
            worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
 
            LayerOverlay staticOverlay = new LayerOverlay();
            staticOverlay.Layers.Add("WorldLayer", worldLayer); 
            winformsMap1.Overlays.Add(staticOverlay);
 
            winformsMap1.CurrentExtent = new RectangleShape(-165.7421875, 80.23046875, -35.6640625, 13.08203125);
            winformsMap1.Refresh();
        }
 
        private void btnExecute_Click(object sender, EventArgs e)
        {
            ShapeFileFeatureLayer worldLayer = (ShapeFileFeatureLayer)winformsMap1.FindFeatureLayer("WorldLayer");
 
            worldLayer.Open();
            DataTable dataTable = worldLayer.QueryTools .ExecuteQuery(tbxSQL.Text);
            worldLayer.Close();
 
            dgridResult.DataSource = dataTable;
        }
 
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale
code.thinkgeo.com
RobUser is Offline
Level 4
Level 4
Posts:170
Avatar

--
03-08-2010 01:43 PM
The problem only occurs when you have a LOT of shapefiles in the same directory all named very closely. My files are named "Studyblocks_X.dbf" where X can be any number 1-50,000. Most numbers aren't used, but theres at least 1,000 shapefiles in there. Unfortunately, I can't simply rename them, since they are generated and used from other applications and servers.

Anyways, I found a workaround... FeatureLayer.QueryTools.GetFeaturesByColumnValue() does not suffer from this limitation. I'm guessing it does not use Jet under the hood.
YaleUser is Offline
MVP
MVP
Posts:1771
Avatar

--
03-09-2010 02:57 AM

Rob,

Thanks for your feedback and explanations, I am glad you find a way to work around.
 
If this problem still happens or make you upset, please send me the data to recreate it, it would be nice and helpful with the code attached.
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale
code.thinkgeo.com
stetshUser is Offline
Level 1
Level 1
Posts:6
Avatar

--
03-15-2010 03:04 PM
hi,i have a windows vista 64-bit and i cant find the sample application folder could u elaborate more about where i can find it?
JamesUser is Offline
MVP
MVP
Posts:464
Avatar

--
03-16-2010 09:39 PM
Stetsh,

We can not find any records for install/uninstall our products at your machine, so I will use DesktopEdition Evalution as an example below to elaborate the sample application folder.
C:\Program Files (x86)\ThinkGeo\Map Suite Desktop Evaluation Edition 3.0\Samples

If the x86 machine, the path doesn’t contain (x86).
If the Full version, it uses Full instead of Evaluation.
If the WebEdition, it uses Web instead of Desktop.

Thanks
James
Think what? Think Geo!
You are not authorized to post a reply.

Active Forums 4.2