|
|
|
date: Fri, 2 Mar 2007 14:47:58 -0800,
group: microsoft.public.dotnet.languages.vc
back
RE: Vista / XP msvcrt.dll error
Hi David,
Based on my knowledge, _except_handler*(* can be 2, 3, 4) is an internal
exception handler of Microsoft VC++ compiler.
I have used windbg to dump the available handlers in msvcrt.dll on Win2003,
below is the result:
0:000> x msvcrt!_except_handler*
77bc6bbc msvcrt!__except_handler2 (void)
77bc6c74 msvcrt!_except_handler3 (void)
So the _except_handler4_common handler is not present in msvcrt.dll on
Win2003 machine. I assume it is the same as WinXP.(I will give a check on
WinXP machine tommorrow after going back to office)
By testing it Vista reveals, the Vista version of msvcrt.dll contains
_except_handler4_common symbol.
I then performed search in all the available Microsoft database and found
some records. Most of the records are related with certain Vista tools
being used on WinXP machine, which will generate the error your pasted.
I am not sure if this is a known issue yet, I will try to contact VC++ team
to ask for the best practise for this issue.
Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Mon, 05 Mar 2007 13:33:57 GMT
author: (Jeffrey Tan[MSFT])
RE: Vista / XP msvcrt.dll error
Hi David,
Sorry for letting you wait.
Yes, they confirmed that only CRT8 version of msvcrt.dll contains the
_except_handler4_common function. To use it, you need to install the CRT8
redist on XP:
http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-
9C99-220B62A191EE&displaylang=en
However, they thought that non-Windows developers (third parties as well as
MS non-Windows developers) are never supposed to use system32's msvcrt.dll.
That's only for Windows components. We believe you should be using
msvcr80.dll followed with VS2005.
To find out why your application is connecting to system32's msvcrt.dll,
you could use depends.exe to check just which binary is trying to access
msvcrt.dll. Or enable loader snaps and look at the output in the debugger.
I will wait for your further feedback, thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Tue, 06 Mar 2007 03:41:08 GMT
author: (Jeffrey Tan[MSFT])
Re: Vista / XP msvcrt.dll error
BV [Fri, 9 Mar 2007 14:20:22 -0600]:
>The older msvcrt.lib would have no import for the suffix 4 exception handler
>function, because it was introduced with vista.
I've made import libraries in my time from
nothing but DLL files, back around the omf-
coff switch over. If someone wanted to make
an import library for some DLL, I'd assume he
still could. Most files today dwarf the RTL
so I'd sooner link static than do that (for
small files, I use the vc6 import lib).
07 02 18 23:23 5,632 zetup.exe
Made with vs8/link8, ref'ing msvcrt.dll.
File made/linked with the vs8 static lib:
07 03 09 14:38 50,176 zetup.exe
(Like I said, simple, so only a little RTL
got linked; no reference to any RTL DLL.)
Manifests turn out to be pretty ugly (hack)
so I go out of my way to avoid that mess.
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
date: Fri, 09 Mar 2007 12:43:00 -0800
author: ()
Re: Vista / XP msvcrt.dll error
wrote in message
news:OEOvHuoYHHA.4552@TK2MSFTNGP05.phx.gbl...
> BV [Fri, 9 Mar 2007 14:20:22 -0600]:
> >The older msvcrt.lib would have no import for the suffix 4 exception
> >handler
> >function, because it was introduced with vista.
>
> I've made import libraries in my time from
> nothing but DLL files, back around the omf-
> coff switch over. If someone wanted to make
> an import library for some DLL, I'd assume he
> still could. Most files today dwarf the RTL
You can, but that would be a .lib matching the version of the .dll generated
from, hence a Vista msvcrt.lib.
> so I'd sooner link static than do that (for
> small files, I use the vc6 import lib).
>
> 07 02 18 23:23 5,632 zetup.exe
>
> Made with vs8/link8, ref'ing msvcrt.dll.
> File made/linked with the vs8 static lib:
>
> 07 03 09 14:38 50,176 zetup.exe
>
> (Like I said, simple, so only a little RTL
> got linked; no reference to any RTL DLL.)
still, the linker only puts import table entries for the functions
referenced by the objects, so how did _except_handler4_common get
referenced?
>
> --
> 40th Floor - Software @ http://40th.com/
> iplay.40th.com iPlay advanced audio player
> zircon.40th.com Zircon music player
date: Fri, 9 Mar 2007 15:36:44 -0600
author: Ben Voigt am
Re: Vista / XP msvcrt.dll error
BV- [Fri, 9 Mar 2007 15:36:44 -0600]:
>still, the linker only puts import table entries for the functions
>referenced by the objects, so how did _except_handler4_common get
>referenced?
I must not be following this thread as well
as you are.
* msvcrt.dll is used by all vc1-6 applications
that link to the msvcrt.dll
* vc7+ apps no longer use msvcrt.dll, but
rather use a version-specific msvcrt##.dll,
and requires a manifest
* Someone in this thread said msvcrt.dll is
a system dll, and apps, more or less, are
not to use it
This last statement is one that is not terribly
valid. The rest of the thread I wasn't following,
so I don't know how to answer your question.
--
40th Floor - Software @ http://40th.com/
iplay.40th.com iPlay advanced audio player
zircon.40th.com Zircon music player
date: Sat, 10 Mar 2007 06:30:20 -0800
author: ()
|
|