Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |  Developer Community
 
LivePerson Chat

Discussion Forums

The online community for users of Map Suite GIS components

Error: Attempted to read or write protected memory
Last Post 11-22-2006 04:21 PM by ThinkGeo. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KUser is Offline
Level 1
Level 1
Posts:14

--
10-31-2006 06:02 PM

I am trying to load a raster file of about 1 MB in size. I get the following on all Windows 2003 servers I have tried it on using any raster file: Any ideas?

All vector layers do work fine, just the raster layers have problems.

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Source Error:


Line 27: MapEngine map = new MapEngine();
Line 28: string filename = MapDir + "Radar\\Radar_RGB_" + mapnum.ToString() + ".tif";
Line 29: map.ImageLayers.Add(new ImageLayer(filename));
Line 30:
Line 31: map.CanvasColor = Color.Black;


Source File: c:\Inetpub\wwwroot\WeatherMap\App_Code\Radar.cs Line: 29

Stack Trace:


[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
MapSuite.ImageLayer.x5e6ec35d5a117867(String x5bc1d1f1888375f9) +349
MapSuite.ImageLayer..ctor(String PathFileName) +114
RadarMap.CreateMap(HttpContext context, Int32 mapnum) in c:\Inetpub\wwwroot\WeatherMap\App_Code\Radar.cs:29
Radar.ProcessRequest(HttpContext context) in c:\Inetpub\wwwroot\WeatherMap\Radar.ashx:22
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


ThinkGeoUser is Offline
MVP
MVP
Posts:1591
Avatar

--
11-01-2006 04:46 PM

kbradl1,

Thanks for your post!

This issue maybe related to a missing dll in your system32 directory. Please check for the following files:
msvcp71.dll
msvcr71.dll

If you are missing these we can provide them to you.

ThinkGeo Support

KUser is Offline
Level 1
Level 1
Posts:14

--
11-16-2006 02:56 PM
They are there in the system32. They are dated 11/15/2005
ThinkGeoUser is Offline
MVP
MVP
Posts:1591
Avatar

--
11-17-2006 12:07 PM

kradl1,

As these files are created when the OS is installed the date that you provided would be different for every computer. Could you supply the version of those two dlls?

ThinkGeo Support

KUser is Offline
Level 1
Level 1
Posts:14

--
11-21-2006 11:36 AM
msvcp71.dll 7.10.3077.0
msvcr71.dll 7.10.3052.4
ThinkGeoUser is Offline
MVP
MVP
Posts:1591
Avatar

--
11-22-2006 04:21 PM

kbradl1,

These look to be the correct versions. I would check that your images are not read-only. You also might try loading these images via Map Suite Explorer as an Image Layer to verify that they can be accessed.

ThinkGeo Support

You are not authorized to post a reply.

Active Forums 4.1