Article View: microsoft.public.dotnet.framework.interop
Article #4Re: C# XslCompiledTransform crash when called from VCL C++ - Solved
From: Jeroen ter Hofstede
Date: Mon, 27 Mar 2006 07:21
Date: Mon, 27 Mar 2006 07:21
14 lines
2117 bytes
2117 bytes
A final update - Microsoft support has been able to find the problem. Somewhere in the CLR the code fiddles with the control word of the floating point unit. This is able to cause an exception, but Microsoft compilers by default mask out this exception in the programs they generate. Borland's compilers however leave this exception unmasked, leading to the problem. The solution is simple; to mask the exceptions, add # include <float.h> ..... _control87(MCW_EM, MCW_EM); to the beginning of your program, and all works well again.
Technical Details
Message-ID:
<1143444072.797119.39450@z34g2000cwc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z34g2000cwc.googlegroups.com!not-for-mailReferences:
<1142521767.541238.214090@z34g2000cwc.googlegroups.com> <1142588061.441789.225940@i39g2000cwa.googlegroups.com> <1142591469.157091.141210@i39g2000cwa.googlegroups.com> <1142602593.837341.9870@p10g2000cwp.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10fc48,f764f9342057d78f X-Google-Thread: fde74,f764f9342057d78f X-Google-Attributes: gid10fc48,gidfde74,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z34g2000cwc.googlegroups.com!not-for-mail From: "Jeroen ter Hofstede" <jeroen.ter.hofstede@wanadoo.nl> Newsgroups: microsoft.public.dotnet.framework.interop,borland.public.cppbuilder.language.cpp Subject: Re: C# XslCompiledTransform crash when called from VCL C++ - Solved Date: 26 Mar 2006 23:21:12 -0800 Organization: http://groups.google.com Lines: 15 Message-ID: <1143444072.797119.39450@z34g2000cwc.googlegroups.com> References: <1142521767.541238.214090@z34g2000cwc.googlegroups.com> <1142588061.441789.225940@i39g2000cwa.googlegroups.com> <1142591469.157091.141210@i39g2000cwa.googlegroups.com> <1142602593.837341.9870@p10g2000cwp.googlegroups.com> NNTP-Posting-Host: 62.177.224.213 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1143444078 22970 127.0.0.1 (27 Mar 2006 07:21:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 27 Mar 2006 07:21:18 +0000 (UTC) In-Reply-To: <1142602593.837341.9870@p10g2000cwp.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000cwc.googlegroups.com; posting-host=62.177.224.213; posting-account=GtcNIQ0AAAB-HytxjLrEI1snnk-XzQGu