WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.



Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

mSendmail crashes

Keywords:   IPF crash AWFXCG32.DLL mSendMail mSendmailEx Outlook 2007 MAPI Messaging API client 


I have some Code on my XP System that sent e-mails that worked flawlessly for years until now. We just upgraded from Outlook 2003 using Exchange 2003 to Outlook 2007 using Exchange365. Anyone else come across this??

Code that always worked:

DebugTrace(@ON,'c:\trace email issue.txt')
ret=mSendMailEx(recip_email,"Test Subject","Test Body","","")
Trace shows:

*** Debug Initialized ***

Thu 4/17/2014 2:34:43 PM
WinBatch 32 2014A
WIL DLL 6.14ana
Windows platform: NT, version: 5.1, build: 2600 (Service Pack 3)
ErrorMode: @CANCEL
Valid Code Signature: No
UAC Manifest Settings: level="asInvoker" uiAccess="false"
UAC Elevation Level: Unsupported Platform

----- Extender loaded: {path}\wwmap44i.dll (file version: 44011,0,0,0)

(16) VALUE INT = 1

(16) VALUE STRING = "[]"
then I get a "this program has encountered an error"


You mentioned you now have Outlook 2007. After some research I found that it no longer contains the Messaging API (MAPI) client as a part of the base product installation. As a result, there is functionality missing that the MAPI Extender depends on! Reference:

Your options are to download and install the Messaging API (MAPI) client from the above link or to abandon MAPI and use the Postie Extender to handle sending email.


I tried running a modified version of the sample WinBatch program for the mSendMail function and got the following error message (details further below).

"WINBATCH caused an invalid page fault in module AWFXCG32.DLL at 014f:7f7af33a."

I get the error message after mSendMail executes. However, despite the error, the program executes the rest of the code and the mail and its file attachment does get sent.

I also get the same error when running the sample code provided for the mReadNextMsg function in the MAPI extender help file.

The version of the MAPI extender I recently downloaded is 27002.

I ran the mSendMail script on another machine that does not have AWFXCG32.DLL loaded and it works just fine.

WINBATCH caused an invalid page fault in
module AWFXCG32.DLL at 014f:7f7af33a.
EAX=02a40420 CS=014f EIP=7f7af33a EFLGS=00010202
EBX=815d818c SS=0157 ESP=0064e5a0 EBP=0064e77c
ECX=0000000d DS=0157 ESI=bff7ee11 FS=0eff
EDX=815d6618 ES=0157 EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 08 85 c9 8d 51 ff 89 10 74 1a e8 2f 97 ff ff 
Stack dump:
0064e77c 7f7a0000 815d664c 815d818c 004457cc bff7b9ce 7f7a0000
00000000 00000000 7f7a0000 815d664c 815d818c 00000000 000004bc
815d818c c10d4114 

File properties of AWFXCG32.DLL (found in C:\WINDOWS\SYSTEM):

File Version: 4.0.962
Description: Microsoft Fax Configuration User Interface
Product Name: Microsoft® At Work Fax


On the problem machine, what happens when you double-click the Mail icon in Control Panel? Do you get an error? Does anything happen?

Do you have Outlook or Exchange installed? if so what happens when you exit Outlook/Exchange? Does it crash?

My guess is, there is a problem with the version of the AWFXCG32.dll installed on that system. That dll is associated with Microsoft At Work Fax....

Have you installed Microsoft Exchange Windows 95 client, version 4.0 or Microsoft Outlook 97? if so, Take a look at the following article on Microsofts web site.

You might consider updating that dll. see the following microsoft link for download information....
(Updated Awfxcg32.dll to Fix IPF)


In response to your questions:

1. Double-clicking on the Mail icon in the Control Panel works just fine.

2. I have Exhange installed. Exchange works just fine when it quits.

3. I installed Microsoft Exchange Windows 95 client, version 4.0.

Nevertheless, I took your advice, followed the Microsoft link, downloaded the AWFXCG32.DLL update and installed it.

...And it works!

Thanks a lot for your quick response. I'm recommending WinBatch to another client.

Article ID:   W14424
Filename:   mSendMail crashes.txt
File Created: 2017:07:28:13:58:31
Last Updated: 2014:04:18:12:49:37