Error: VBA initialization failed

Article ID:35334
Software: ArcGIS - ArcEditor 9.2, 9.3, 9.3.1 ArcGIS - ArcInfo 9.2, 9.3, 9.3.1 ArcGIS - ArcView 9.2, 9.3, 9.3.1
Platforms: Windows XP, 2003Server, Vista
Error Message
When attempting to open ArcMap, the following error message is returned:

"VBA initialization failed".

 

Cause
The file, gdiplus.dll, exists within the C:/Program Files/ArcGIS/bin directory.

 

Solution or Workaround
  1. Navigate to C:/Program Files/ArcGIS/bin. Locate gdiplus.dll and rename it to old_gdiplus.dll; this will force ArcMap to use the Windows gdi drivers.
  2. Re-enable Visual Basic for Applications (VBA) in the registry if it was disabled.

      Warning: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary.

    ESRI cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk.


    To re-enable VBA in the registry:

    Navigate to HKEY_LOCAL_MACHINE/SOFTWARE/ESRI/ArcMap/Settings, double-click the PreloadVBA variable and set the value data to 0 from 1.

    If the PreloadVBA has a value of 0; VBA is not loaded (disabled) when ArcMap starts. If the PreloadVBA has a value of 1; VBA is loaded (enabled) when ArcMap starts.
  3. Open ArcMap.
  4. If ArcMap opens and the VBA Editor is enabled, delete the gdiplus.dll that was renamed in step 1.

 

Related Information

 

Created: 8/7/2008
Last Modified: 7/9/2010

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Error: java:Context initialization failed是指在应用程序上下文初始化过程中遇到了错误。根据引用的描述,这个错误是由于创建名为'dataSource'的bean时出现了错误。这可能是由于配置错误、依赖问题或代码错误引起的。 根据引用和引用的描述,我可以推测可能有以下几个原因导致这个错误: 1. 配置错误:检查应用程序的配置文件,特别是与'dataSource'相关的配置,确保没有任何错误或遗漏。 2. 依赖问题:检查应用程序的依赖关系,确保所需的库和依赖项已正确添加和配置。可能需要更新或重新安装依赖项。 3. 代码错误:检查代码中与'dataSource'相关的部分,确保没有错误或逻辑问题。特别注意是否正确引入和配置了相应的类和接口。 综上所述,如果遇到Error: java:Context initialization failed错误,建议先检查相关的配置文件、依赖关系和代码,并修复可能的错误。如果问题仍然存在,可能需要进一步调查和排查其他可能的原因。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [spring框架进行简单的增加操作出现的错误,解决方法](https://download.csdn.net/download/IDCSDNS/85772683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [ERROR ContextLoader:351 - Context initialization failed](https://blog.csdn.net/xman2008wang/article/details/78578151)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值