Recently, while working on custom report (called from an executable) for Sage 300 ERP; we encountered an unexpected error APPCRASH when trying to print the report. Below is the description of error.
Description: Stopped working
Problem Event Name: APPCRASH
Application Name: XXXX.exe
Application Version: 188.8.131.52
Application Timestamp: 50ebc561
Fault Module Name: MSVCR80.dll
Fault Module Version: 8.0.50727.5592
Fault Module Timestamp: 4d2be7f2
Exception Code: c0000005
Exception Offset: 00050804
OS Version: 6.1.7601.2.1.0.16.7
Locale ID: 1033
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
In order to resolve this issue place the runtime file a4wcrInterop.dll in the same directory where the executable is residing.
For example: \Sage Accpac\OE61A\CustomReport\CallReport.exe. If this is the case, then runtime file should be place under \CustomReport directory.
The above mention runtime file a4wcrInterop.dll can be located under \Sage Accpac\Runtime.
There are also other errors related to reports watch out for the hot fixes which Sage has recently released.