Hi Howard
Thank you for the reply. I have tried to implement your suggestion but I am still facing the same problem. When there is no collission of more than one request in the web server, everything is working fine. But when two connections raise a request for the image, then the out of memory exception fires.
My application that uses Map Suite web edition is mult-user and therefore, one of the requirement is to be able to serve as many users as possible at a time. Can you find for me a work around to this problem? Below is a sample code showing how I have been doing it.
GeoTiffRasterLayer Layera = new GeoTiffRasterLayer(TiffImage);
Layera.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff;
Layera.UpperThreshold = double.MaxValue;
Layera.LowerThreshold = 0;
Layera.IsGrayscale = false;
LayerOverlay dynamicOverlay = new LayerOverlay();
dynamicOverlay.IsBaseOverlay = false;
dynamicOverlay.Name = "Image";
dynamicOverlay.TileType = TileType.MultipleTile;
dynamicOverlay.Layers.Add(Layera);
Map1.CustomOverlays.Add(dynamicOverlay);
dynamicOverlay.ServerCache = new ServerCache(@"c:\GISImageCache\temp\img1");
dynamicOverlay.GenerateCacheImages(Map1.ClientZoomLevelScales[9], Map1.CurrentExtent, Map1.MapUnit);
Best Regards,
Vincent