Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

problem using mixed code dlls with asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HMANG - 03 Mar 2005 17:55 GMT
I have a c# application that calls a mixed code dll which in turn calls an
unmanaged dll that has an inline template class constructor.

The c# application runs fine until I use it on IIS

The problem only occurs the first time you run it in a debugger.
When it tries to enter into the unmanaged C++ inline template class it fails
saying that it can't find the specific code ... if you look at the
disassembly you will see that this template class does a jmp to an invalid
address.

If you stop the debugger and restart it you will not see the problem.
Anyone got any ideas ????
HMANG - 10 Mar 2005 17:49 GMT
It turns out that this behaviour was down to strong naming and its set up ....
When the managed dll had the following conditions
1) built as strong named
2) included in the GAC
3) copy local.Net IDE set as true
4) All the .Net caches cleaned out

The Result was :
1st Run : No Problem
Close the debugger
Open the debugger
Run :  Thec# application calls into the managed code fine but when the
managed code calls the unmanaged code it bombs out.

The above happens also if the strong named dll isn't included in the gac and
copy local.Net IDE set as true

The only time it does work is if the strong named dll is included in the gac
and copy local.Net IDE set as false

I can't find anything on the web to support this , Does anyone have an
explaination for this behavior ... pretty please ;-)

> I have a c# application that calls a mixed code dll which in turn calls an
> unmanaged dll that has an inline template class constructor.
[quoted text clipped - 9 lines]
> If you stop the debugger and restart it you will not see the problem.
> Anyone got any ideas ????

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.