VERIFIED SOLUTION i
X

How to resolve MapInfo Pro 32 bit error Unhandled Exception while running custom application

Issue

MapBasic application MBX causes MapInfo Pro error to be occur.

Error 1: 
---------------------------
MapInfo
---------------------------
Unhandled exception (AppDomainUnloadedException): The application domain in which the thread was running has been unloaded. 
---------------------------
OK   
---------------------------

Error 2:
User-added image

System Error Internal Error: 34531

Error 3:

User-added image

System Error Internal Error: 34631


Error referenced in Event Viewer for Office 2016 users:

Activation context generation failed for "C:\Program Files (x86)\Microsoft Office\Office16\lync.exe.Manifest" .Error in manifest or policy file ""C:\Program Files (x86)\Microsoft Office\Office16\UccApi.DLL" on line1. Component identify found in manifest does not match the identity of the component requested. Reference is UccApi.processorArchitecture="AMD64", type="win32",version="16.0.0.0".Definition is UccApi,processorArchitecture="x86",type="win32",version="16.0.0.0". Please use sxstrace.exe for detailed diagnosis.

Event viewer screenshot:
User-added image

Cause

Microsoft Visual C++ Libraries 2010, 2012, 2013 may need to be repaired.

Windows Updates May need to be Initially installed and may require reboot.

Resolution

UPDATED: July 31, 2017


Resolution on how to fix this issue:
  • Make sure all Windows updates are current. 
  • Windows may need a reboot to initialize Windows updates and for Windows to be configured automatically.
  • Repair All Microsoft Visual C++ Libraries 2010, 2012, 2013. 
  • Make sure that Microsoft Access can open without error.
  • Make sure MapInfo Pro 32 application is fully patched
  • Test MapInfo Pro and customer MBX after the previous attempts above have been attempted. 

Environment Details


MapInfo Pro 32 bit ™

Downloads

  • No Downloads