POST
|
I think the problems from the sr.lock mechanism, when the raster was read or written in other thread, current thread can't handle this file. So, keeping try until it's succeed will be the workaround, and it really works for my situation. Here's the code: while True: try: #code generate these errors break except: pass
... View more
08-29-2017
01:20 AM
|
0
|
0
|
948
|
POST
|
I'v looked at the desktop help for information about the error code, and also I've googled it, but few good answers, most comes from the online help.
... View more
08-29-2017
01:15 AM
|
0
|
0
|
948
|
POST
|
this is really a frequent crash when i use the toolbox? I still can't figure out what is the cause? Could anyone help find out a solution or provide any suggestion? Thks in adv..orz
... View more
08-27-2017
03:37 AM
|
0
|
4
|
2062
|
POST
|
is there a workaround in arcgis engine 10.1 to use gxtreeview in a stand-alone winform application? I found it's hard to use controls in arccatalog except gxdialog, Here I need a control to show the tree view of my data directory as arccatalog does, I've tried a lot of times, but no good.
... View more
08-09-2017
09:03 PM
|
0
|
0
|
357
|
POST
|
/// <summary> /// Open a timecontrol and control a playback sequence without displaying the timecontrol GUI. /// </summary> /// <param name="application">An IApplication interface.</param> /// <remarks></remarks> public void TimeControlPlayback() { ESRI.ArcGIS.Carto.IMap map = axMapControl1.ActiveView.FocusMap; ESRI.ArcGIS.Carto.IMapTimeDisplay timeMap = map as IMapTimeDisplay; ESRI.ArcGIS.TrackingAnalyst.ITemporalLayer temporalLayer = null; if (map.get_Layer(0) is ESRI.ArcGIS.TrackingAnalyst.ITemporalLayer) { temporalLayer = (ESRI.ArcGIS.TrackingAnalyst.ITemporalLayer)map.get_Layer(0); // Explicit Cast } if (temporalLayer == null) { timeMap.ShowTime = true; return; } Type factoryType = Type.GetTypeFromProgID("esriTrackingAnalystUI.TimeControl"); ESRI.ArcGIS.TrackingAnalyst.ITimeControl timeControl = (ITimeControl)Activator.CreateInstance(factoryType); System.Int32 int32_hWnd = axMapControl1.hWnd; timeControl.CurrentMap = axMapControl1.ActiveView.FocusMap; timeControl.SetTemporalReferencesFromMap(); timeControl.TemporalMode = ESRI.ArcGIS.TrackingAnalyst.enumPlaybackTemporalMode.enumTemporalHistoric; if (!(timeControl.Status == ESRI.ArcGIS.TrackingAnalyst.enumTimeControlStatus.enumStopped)&&timeControl.Status<enumTimeControlStatus.enumInValidView) { timeControl.Stop(); } timeControl.SetTimeSequenceInterval(ESRI.ArcGIS.TrackingAnalyst.enumTemporalUnits.enumDays, 1); timeControl.CurrentTime = timeControl.StartTime; timeControl.UpdateDisplay = true; timeControl.WindowTitle = "test"; try { timeControl.Play(ESRI.ArcGIS.TrackingAnalyst.enumDirection.enumForward); } catch (COMException ex) { System.Windows.Forms.MessageBox.Show(ex.StackTrace); } } everything is ok until Play, report an error like this: System.Runtime.InteropServices.COMException (0x80040980): The Time control must be activated before it can be made visible.
... View more
10-16-2016
02:03 AM
|
0
|
0
|
971
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|