473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

'Fatal Execution Engine Error' using unmanaged obj from 2 appdomai

I believe I've found a bug in either the compiler or in the runtime....for
some reason when accessing a specific unmanaged object from 2 appdomains it
causes a fatal execution engine error. It took me over a week to narrow it
down, but here's a nice simple snippet of code that showcases this issue:
http://rafb.net/p/Z94NfD16.html

Anyone have any idea what exactly is the root cause of this or how to fix it
properly? It seems that if I change the code much (such as remove the
'virtual' from either of the methods, or change the return types, or change
the dictionary to something else) the problem goes away, but I'm more worried
about where else in my code this affects and I'm hoping for a more viable
solution than "search through 500K lines of code and look for that
pattern"....not realistic

If anyone wants more detail I've put a rar up which contains the source, a
debug build with symbols, the eventlog entry, and an adplus dump with
corresponding reports:
http://www.virgeweb.com/redec/crap/R...ailureTest.rar
Nov 5 '07 #1
4 1535
well apparently pastes on rafb.net don't stick around for long....so here's
the source that causes the problem:

#include <msclr/appdomain.h>

using namespace System;
using namespace System::Collections::Generic;
using namespace msclr;

ref class MyManagedClass
{
};

class MyUnmanagedClass
{
public:
virtual MyManagedClass^ Foo() { return nullptr; }
virtual Object^ CrashyCrashy()
{
Dictionary<String^, MyManagedClass^^bar = gcnew
Dictionary<String^, MyManagedClass^>();
bar->Add("", nullptr);
return nullptr;
}
};

void Test(MyUnmanagedClass *foo)
{
foo->CrashyCrashy();
}

int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
MyUnmanagedClass foo;
AppDomain ^domain1 = AppDomain::CreateDomain("TestDomainOfGoodness");
call_in_appdomain<MyUnmanagedClass*>(domain1->Id, &Test, &foo);
return 0;
}
Nov 6 '07 #2
redec wrote:
I believe I've found a bug in either the compiler or in the
runtime....for some reason when accessing a specific unmanaged object
from 2 appdomains it causes a fatal execution engine error. It took
me over a week to narrow it down, but here's a nice simple snippet of
code that showcases this issue: http://rafb.net/p/Z94NfD16.html

Anyone have any idea what exactly is the root cause of this or how to
fix it properly? It seems that if I change the code much (such as
remove the 'virtual' from either of the methods, or change the return
types, or change the dictionary to something else) the problem goes
away, but I'm more worried about where else in my code this affects
and I'm hoping for a more viable solution than "search through 500K
lines of code and look for that pattern"....not realistic

If anyone wants more detail I've put a rar up which contains the
source, a debug build with symbols, the eventlog entry, and an adplus
dump with corresponding reports:
http://www.virgeweb.com/redec/crap/R...ailureTest.rar
Interesting. I can repro what you describe, both with VS2005 SP1 and a very
recent build of VS2008.

You might want to contact Microsoft PSS about this - it seems very likely
that what you're encountering is a bug, and charges for support calls are
generally waived if the underlying problem is a bug in the product.

-cd
Nov 7 '07 #3
"Carl Daniel [VC++ MVP]" wrote:
Interesting. I can repro what you describe, both with VS2005 SP1 and a very
recent build of VS2008.

You might want to contact Microsoft PSS about this - it seems very likely
that what you're encountering is a bug, and charges for support calls are
generally waived if the underlying problem is a bug in the product.

-cd
Yeah...I've been trying to avoid that phone call :P....You'd think they'd
have a better way to submit bugs....I've looked on
http://connect.microsoft.com but there doesn't seem to be an appropriate
place for vs-related issues....
Nov 7 '07 #4
redec wrote:
"Carl Daniel [VC++ MVP]" wrote:
>Interesting. I can repro what you describe, both with VS2005 SP1
and a very recent build of VS2008.

You might want to contact Microsoft PSS about this - it seems very
likely that what you're encountering is a bug, and charges for
support calls are generally waived if the underlying problem is a
bug in the product.

-cd

Yeah...I've been trying to avoid that phone call :P....You'd think
they'd have a better way to submit bugs....I've looked on
http://connect.microsoft.com but there doesn't seem to be an
appropriate place for vs-related issues....
There is (https://connect.microsoft.com/feedback/?SiteID=210), but Connect
is not a path to a solution for a problem that's blocking your progress.
Rather, it's path to get bugs into the system to be fixed in some future
version (at this point, Orcas+1 at the earliest). If you need a short-term
solution, PSS is your option. No guarantees that you'll get a solution that
way, but you surely won't get one through Connect.

I'm not sure where all you've posted, but you might try posting in
microsoft.public.dotnet.framework, where the core CLR experts are more
likely to congregate.

-cd

Nov 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DaveHenrie | last post by:
I had VB Studio.net installed on this machine in the past. However, my version be corrupted somehow. Therefore, I uninstalled .net using the Windows Install/uninstall utility. I only was able to...
1
by: PS | last post by:
Hi I have project in old C++ (not .NET). I have prepared .dll in C++.NET for this old project. Project compile without any errors but after execution I got error "Fatal execution engine error"....
1
by: Pat Bradford | last post by:
While installing .NET Version 1.1 from Prerequisites disk, get "Fatal Execution Engine Error (0x7926FCD8)". Installation continues after I click "Okay," but at the end of the .NET installation, I...
3
by: Alan Z. Scharf | last post by:
1. Getting above when try to open any aspx.files in VS.Net 2003. OS is Server 2003. 2. No apparent entry in Event Viewer either by time of error. 3. CLR debugger breaks at followinng point:
0
by: Paul | last post by:
Fatal Execution Engine Error (0x7927121e) I am getting this error when trying to load a website I am developing in vs2003. asp.net 1.1. Where exactly do you look up this error? Rhetorical, I...
0
by: backsbt | last post by:
Hi , I have .NET 2003 and .NET 2005, SQL 2005 Express edition advanced edition installed on Windows XP SP2 machine. When ever I try to open any aspx /ascx files that I deeloped in .NET 2003 ...
1
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, I have a window application in VS2005. I can build and run it. But when I open a specific form with design view, the Visual Studio crashes and closes without error message! the error message...
1
by: Vulgrin | last post by:
I have a web service that I've built and is running at a customer's site. We have been having issues with it dying in the middle of the day, sometimes completely silently, other times with errors...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
in event log:.NET Runtime version 2.0.50727.312 - Fatal Execution Engine Error (7A062A61) (80131506) We have an application that seems to be throwing this error, but I can't seem to work out why...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.