ThinkGeo.com    |     Documentation    |     Premium Support

Exception fired after pan or center at

Hi,


I have an exception like "String format is incorrect" after I pan the map or after I center at a feature.


I have a map with several shp layers and one dynamic layer on which I move, add and remove feature (between 30 and 100) each 10 seconds. I use also the projection Proj4Projection.GetEpsgParametersString(4326)

If I execute a lots of pans, zooms and center at, I have the exception after few minutes.


Jerome




Jerome 
  
 Can you give us more information to see how is the problem happened? For example, 
 Can you paste out your code as well as the exception stack trace etc. 
  
 It is very hard for us to recreate your problem. 
  
 Sorry for the inconvenience. 
  
 Let me know if any more questions. 
  
 Thanks. 
  
 Yale 


Hello,


I sent you the stack into a file attachment (ErrorMapSuite.jpg). If you could not see it I will send you a text.


Regards,


 


Jerome



Jerome, 
  
 Sorry I did not see your attachment file as you said. Probably you can save the image as .png file and insert it when you write the post (that would be much easier to read). 
  
 Besides, can you also paste out the codes for this exception? 
  
 Let me know if any more questions. 
  
 Thanks. 
  
 Yale 


Hi, 
  
 I have installed the last version 3.0.362 RC to try to fix the problem but now I have the following “Unlicensed” exception as soon as I call a method on winformmap : 
 L’exception System.InvalidOperationException n’a pas été gérée 
   Message=“Unlicensed.” 
   Source=“DesktopEdition” 
   StackTrace: 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.MakeWaterMarked(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfbd15a0e9d15f4e2(Graphics x783a718028818269, RectangleShape xb35a33b423b17f65) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x8d24c2babbc69053(Overlay x32c2370c791132c5) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x568a187128faa92b(IEnumerable`1 xa6f0db4f183189f1) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh() 
        à icenter.GeosetManager.MSGeoSetManager.ZoomTo(RectangleShape r) dans C:\travail\dev\CVSRepo\GPTranS\windows\Iqube\icenter.MapControler\MSGeoSetManager.cs:ligne 158 
        à icenter.GeosetManager.MSGeoSetManager.ZoomToFullExtent() dans C:\travail\dev\CVSRepo\GPTranS\windows\Iqube\icenter.MapControler\MSGeoSetManager.cs:ligne 146 
        à icenter.GeosetManager.MSGeoSetManager.OpenGeoset(String aFileName) dans C:\travail\dev\CVSRepo\GPTranS\windows\Iqube\icenter.MapControler\MSGeoSetManager.cs:ligne 324 
        à MapControlerTest.Form1.button1_Click(Object sender, EventArgs e) dans C:\travail\dev\CVSRepo\GPTranS\windows\Iqube\MapControlerTest\MapControlerTest\Form1.cs:ligne 25 
        à System.Windows.Forms.Control.OnClick(EventArgs e) 
        à System.Windows.Forms.Button.OnClick(EventArgs e) 
        à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 
        à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
        à System.Windows.Forms.Control.WndProc(Message& m) 
        à System.Windows.Forms.ButtonBase.WndProc(Message& m) 
        à System.Windows.Forms.Button.WndProc(Message& m) 
        à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
        à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
        à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
        à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 
        à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) 
        à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 
        à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 
        à System.Windows.Forms.Application.Run(Form mainForm) 
        à MapControlerTest.Program.Main() dans C:\travail\dev\CVSRepo\GPTranS\windows\Iqube\MapControlerTest\MapControlerTest\Program.cs:ligne 17 
        à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) 
        à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
        à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
        à System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
        à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
        à System.Threading.ThreadHelper.ThreadStart() 
  
 Thanks to help me, 
  
 Jerome


 Jerome, 
  
 Thanks for your reporting! We need more information to figure out the problem, because we CANNOT recreated the problem as you said. 
  
 What Operating System are you using? x64 or x86? 
  
 Which Evaluation version is you’re trying first? And then before you installed the latest 3.0.362 RC Evaluation version, did you make a un-install? 
  
 Did you try to install any other products of Map Suite before?  
  
 This problem seems related with WaterMark system in Evaluation product.  
  
 Thanks. 
  
 Yale 


Yale, 
  
 OS : x86 XP pro 
  
 I did not use a evaluation version before but a purchased version. I installed version 3.0.199, 3.0.304, 3.0.307 and few dll packages without problem. and yesterday I installed the 362 RC version and now I have this problem.  
 Why I have the problem with an evaluation product without installing evaluation ? 
  
 Thanks, 
  
 Jerome

Jerome,


I have to admin that I made a mistake; this problem has nothing to do with Evaluation.


Probably the reason is your changing machine name caused this problem, I want to make sure if you have changed your machine name between the version 3.0.307 and 3.0.362?


Can you try to run the HowDoI sample exe shown as following screen shot to see whether it is running well?



Thanks.


Yale

 



Hello Yale, 
  
 YES! I have change my PC and the name of it. Must I change the name with the old one and reinstall mapsuite or what must I do ? 
  
 Winforms How Do I samples runs well. 
  
 Thanks, 
  
 Jerome 


Jerome, 
  
 There are two options for you if you have changed your PC name. 
 1) Change back the PC name back to old one. 
 2) Delete the related item in registry and then re-install the package. 
  
 Let me know if you have any more problems. 
  
 Thanks. 
  
 Yale 


Yale, 
  
 I changed back my new PC name like the old one, I uninstalled and re-installed it and good news, it’s working now. (Before installing, I deleted also the ThinkGeo registsry key from HKEY_LOCAL_MACHINE\SOFTWARE, because it was not deleted) 
  
 Nevertheless, there is something that I want to tell you for your information: 
 1) I have a new PC 
 2) It had not got the same name than the old one. 
 3) I have installed the before last version 3.0.307 on my new PC without the problem 
 4) I have installed the new verison 3.0.362 and the problem appeared. 
  
 So, thanks a lot for your help. 
  
 Regards,  
  
 Jerome

Jerome, 
  
 Thanks, any more questons just let me know. 
  
 Yale