MapPoint object crashed with an internal error (6-40028--1073741819)

bluefireball
11-07-2007, 05:26 PM
Hi all,

We have a C# project that use MapPoint 2006 as object to display vehicle locations. The application crashed on some Win XP machines after running a while. The error message is follwoing: This program has encountered an error and will close. The error details says: This application is unable to continue running due to an internal error. (6-40028--1073741819)

I googled the error. Microsoft knowledgebase has to articles addressing this error. It suggests either the MDAC is broken or the user has an uncompatible network printer driver. In our case, we ruled out the broken MDAC and believe it's probably a printer driver issue. But Micorsoft did not give a real fix or work around to get rid of this problem. As a product, we cannot limit the user not to use network printer. We are at the dead end now. :cry:

Does anybody encounter the same problem? Any solutions or suggestion? Thanks.

bluefireball
11-08-2007, 07:48 PM
Anybody know how to solve this problem? :cry: :cry: :cry:

Wilfried
11-09-2007, 01:04 PM
Hi,

How do you call the printer ?
Can you show the offending code please ?

bluefireball
11-09-2007, 02:45 PM
Wilfried, thanks for asking. The bad thing is, we never call the printer or try to print anything from our code. The Microsoft knowledge base suggests this error could be a printer driver issue. We donot know how this issue is related to printer driver. Maybe MapPoint object by default will try to do something with printer, but definitely not from our code.

To confirm this, we ran a test on 4 identical machines with fresh installed Win XP, MapPoint 2006 and our application. When no printer is installed, our application could continuously run for days without crashing. But after we installed a HP network printer, the application will eventually crash after running a period time, time range from several minutes to 8 hours. Some our clients also complain the same error. :-x

bluefireball
11-09-2007, 07:14 PM
When checking for details error messages, I found the ModName of error sigature is different with what's described in Microsoft's KB310596. So it may not be the printer at all but the VC++ run time library!!!??? :confused: Then, how to explain when no printer installed, the application never crash?

Error signature:
App NameL mappoint .exe AppVer: 13.0.15.2800 ModName: msvcrt.dll
ModVer: 7.0.2600.2180 Offset: 00037fd4

Any clue?

Wilfried
11-12-2007, 01:16 PM
Hi,

I doubt it is the printer, could be coincidence. Could be you overwrite something on the stack or in pool and thereby loosing a pointer. Very difficult to debug.

bluefireball
11-13-2007, 12:48 PM
Thanks Wilfried for the reply. Managed code ususally does not introduce this kind of errors, unless we did a very poor job :cry:. If this is what you suspect, it must be in the C# InteropServices calls to the MapPoint control. It's difficult to debug since the error cannot be trapped, when it happens, the MapPoint object just simply crashes. red:mad: Does anybody have some ideas how to debug MapPoint?

Still, the printer does not look like a coincidence, since we can always reproduce the error. When no printer is installed, the error is gone.

Wilfried
11-17-2007, 04:20 AM
Hi,

In Delphi it is possible to pause a running program in IDE and then view cpu / call stack and so. I see the latter are also possible in VS2005, but I cannot see how to pause a program. Maybe it is possible ? If you can pause at the moment of the crash then the call stack maybe get you further.

 
Web mp2kmag.com
mapforums.com