Conflict between VBA and/or Microsoft Office Shared Library and Add Data control

2898
2
05-03-2011 11:50 AM
MahdiRahimi
New Contributor
I've posted a thread about appcrash error in using Add Data control or setting Layers in MapControl properties window when there is an instance of office 2010 installed. I've found that VBA and/or Microsoft Office Shared Library causes the problem. Today I install VBA SDK and re-register office shared library and the error arise again. After installing VBA SDK two items Picture and Color are added to MapControl properties window.

0 Kudos
2 Replies
MahdiRahimi1
New Contributor
Appcrash on vshost32.exe in using Add Data Control.



Visual Studio Output:
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Users\Admin\Documents\Visual Studio 2008\Projects\MapControlApplication16\MapControlApplication16\bin\Debug\MapControlApplication16.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.ADF.Local\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.ADF.Local.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.Version\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.Version.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.AxControls\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.AxControls.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.Carto\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.Carto.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.Controls\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.Controls.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.Display\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.Display.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.System\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.System.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\ESRI.ArcGIS.SystemUI\10.0.0.0__8fc3cc631e44ad86\ESRI.ArcGIS.SystemUI.dll'
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x750 has exited with code 0 (0x0).
The thread 0x1790 has exited with code 0 (0x0).
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Users\Admin\Documents\Visual Studio 2008\Projects\MapControlApplication16\MapControlApplication16\bin\Debug\MapControlApplication16.exe', Symbols loaded.
'MapControlApplication16.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[4752] MapControlApplication16.vshost.exe: Managed' has exited with code -1073740940 (0xc0000374).



Problem signature:
  Problem Event Name: APPCRASH
  Application Name: MapControlApplication16.vshost.exe
  Application Version: 9.0.21022.8
  Application Timestamp: 473168a0
  Fault Module Name: StackHash_d957
  Fault Module Version: 6.1.7601.17514
  Fault Module Timestamp: 4ce7b96e
  Exception Code: c0000374
  Exception Offset: 000c37b7
  OS Version: 6.1.7601.2.1.0.256.1
  Locale ID: 4105
  Additional Information 1: d957
  Additional Information 2: d957dfd33a0784e3c1277afae2788bc8
  Additional Information 3: c83b
  Additional Information 4: c83be18131e50548791f47b20e58c6e8


It seems ArcGIS Data Interoperability causes this error not VBA nor Office Shared Library.
0 Kudos
JeremySury
New Contributor
Did anyone resolve this issue.  I recently updated to ArcGIS10 SP3 and when I run the default MapControlApplication and try to use the Add Data button i get the following error:

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: MapControlApplication1.vshost.exe
  Application Version: 9.0.21022.8
  Application Timestamp: 473168a0
  Fault Module Name: StackHash_662c
  Fault Module Version: 6.1.7600.16695
  Fault Module Timestamp: 4cc7ab86
  Exception Code: c0000374
  Exception Offset: 000cea27
  OS Version: 6.1.7600.2.0.0.256.48
  Locale ID: 1033
  Additional Information 1: 662c
  Additional Information 2: 662c4de66d5f651fda05e09f48208564
  Additional Information 3: 1bcb
  Additional Information 4: 1bcbe069c732b722e4d29f8893cd56a1
0 Kudos