473,714 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ


I am getting a LoaderLock message in an application I have written for
..Net 2.0 in C#. It contains only pure managed assemblies.

The application consists of 1 dll and 2 .exe projects which communicate
to each other with remoting. I only get this problem if I configure
visual studio to start up both exe's for debugging. When I start up
one application in the debugger and the other not in the debugger, it
works fine.

Multiple startup projects have always worked great for me in the past;
is there a known problem in 2.0 or am I possibly doing something wrong?


Dec 4 '05 #1
0 1214

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

Similar topics

by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor. Each task is processed in a separate thread. Each of the executer threads is an STA thread, and it goes ahead and executes the task. No problems are encountered when tasks are executed one at a time, but when multiple tasks are executed...
by: Benjamin Harper | last post by:
Hi, I've recently upgraded a mixed-mode MFC DLL of mine from VS2003 to VS2005 using the newer /clr language. In the process I also removed the manual entry point stuff that used to be necessary. My problem is that whenever I kill a thread (ie its function exits, and DllMain gets called with DLL_THREAD_DETACH), I get the LoaderLock MDA kicking in from line 195 of dllmodul.cpp, which is simply: AFX_MANAGE_STATE(&afxModuleState); I can't...
by: Christian Kaiser | last post by:
We have a component that has no window. Well, no window in managed code - it uses a DLL which itself uses a window, and this is our problem! When the garbage collector runs and removes our component (created dynamically by, say, a button click, and then not referenced any more), the GC runs in a different thread, which prohibits the DLL to destroy its window, resulting in a GPF when the WndProc of that window is called - the code is gone...
by: Light | last post by:
I've a few questions on platform invoke and some issues I've seen. 1. Is it possible to avoid LoaderLock exception without simply turning it off? Does it occur in .NET projects with win32 dll or ONLY in .NET projects with a mixed win32+.NET dll? 2. How to pass a .NET type to a C++ char ** type? My assumption is this is required unsafe code section and use of pointer. Curtis http://www.ghostclip.com
by: Rob R. Ainscough | last post by:
I can't seem to locate the appropriate area in VS 2005 where I can accomplish this -- is this a C# only option? Thanks, Rob.
by: ropo | last post by:
I'm using .NET 2.0, I have a manged windows service which uses a mixed C++ assembly. I also have a mangaged dll that defines the interface to the mixed assembly. Another application communicates with the service through remoting using the managed interface. Mostly this works ok, but when a call a particular function I get the "loadlock detected" exception. I have a test app that can call the function successfully, the difference being...
by: Ron | last post by:
I have two forms. When I click on new entry I hide current form and show form2 as soon as I click on a textbox in form2 I get a loaderlock error. What is this? How can I get rid of this?
by: Beorne | last post by:
I'm trying to call a third party dll routine from C# using pinvoke. Unfortunately I obtain a LoaderLock exception and my application stops. I've seen that it must be some uncorrect behaviour of the called routine, but I can't modify it. Note that calling this routine from a C++ project does not give off any error. How can I do? Thank you!
by: aaron.m.johnson | last post by:
Help me understand this, please. I have an older VC++ COM DLL that I'm using in a C# project. One of the COM objects takes a callback object as a parameter so that it can spin off a thread and do some long running network stuff without blocking. When I run the application the callback works as expected, but I get an error when I try to access the COM object in the callback. So the call order is: C# app -VC++ COM DLL thread -C#...
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.