ThinkGeo.com    |     Documentation    |     Premium Support

Sample application crashes on Windows7

Hello,


I just have downloaded the latest Map Suite Desktop Full Edition 3.0. Its a licensed version not a trial one. When I run the How Do I Samples, it crashed on displaying the shapefiles. Check the attached image.


Regards


 



1518-Capture.PNG (73.6 KB)

Hi AbdulBasit,


 
Our tester has tested the latest version 3.1.299 for Desktop Full edition in Windows7 both 32bit and 64bit OS. They’re working properly, not any exception thrown.
 
From the attached image, I can not get enough information. I just know you select one sample under Getting Started catalog. Can you tell me which sample is your selected? And is any sample can work or every sample will throw the same exception. Please supply us more information which is helpful.
 
I have another question to you:
Before you install the 3.1.299 Full edition, have you ever installed another version or the Eval Edition?
 
Thanks
James

Hello James,

Thanks for the quick reply.


I am using 32 bit version of Win 7. Which ever sample I try to open application crash with the object reference error. If I click on continue map appearse sometimes displaying only the outline but when I perform any operation on map same thing happens again. I have attached the screen shot of application after clicking continue on error message.

On Windows7 I installed Map Suite for the first time. Previously I was using Windows 2003 Server and things were working fine there.

If you say, I can send you the complete error details from the message box.


Regards,

Hamad


 



1519-Capture.PNG (64.7 KB)

Hamad,


Sorry I make a mistake that think your name is AbdulBasit.


I think your information make the thing more close. The problem may caused by WorldMapKitWmsDesktopOverlay.


Can you remove these two lines of code from all samples? And tell me if the exception throw still or not.



 


WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();


winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);



 



Hello James,

Thanks for your email.


Commenting the mentioned lines among the sample project removed the perticular problem. Some projects works fine but in some project map is just disappeared. For instance "Display a simple map"; attached is the screen shot.

In some samples e.g. Load GeoDatabaseFeatureLayer application comes with an error of "File not found". Its image is also attached.


Regards,

Hamad



1520-Display_a_simple_map.PNG (58.1 KB)
1521-Load_GeoDatabaseFeatureLayer.PNG (71.1 KB)



Hamad,
 
I think your sample is running at offline environment, our WorldMapKitWmsDesktopOverlay will connect the remote server, so if you can not access the internet, it will throw exception by default, the problem is that we are not throw a meaningful exception, you can solve this problem by two ways, one is get online, the other one is set the property of WorldMapKitWmsDesktopOverlay, worldMapKitDesktopOverlay.DrawingExceptionMode = DrawingExceptionMode.DrawException;
 
“Display a simple map” only has one overlay which is showing as map, if you remove the overlay, I think the result is correct that the map shows nothing because there is no overlay can display any more.
 
About “Load GeoDatabaseFeatureLayer”, it’s common problem that it can not find the specified DLLs from the dependency path, but not a bug. I don’t think that it’s working in your win2003 but can not work in windows7. You can look at the exception message that will guide you to copy the dependency DLLs to system32 folder.
 
James