Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a VB.Net app that displays a tray icon from another thread. The thread model is STA. When I run the app in VS2008, I get a Loader Lock exception. I can turn it off from the Debug settings, but I do not feel that is a permanent solution. Will I be having issues in my final deployed app (either debug or release version)? Does any other workaround exist for this issue? Thanks in advance
Posted
Updated 5-Mar-10 1:48am
v3

Did you google that exception?

I found this:

1) Remove the references to the assemblies that are LoaderLocking. (I recommend writing down the path to the assembly so you don't forget it.)
2) Rebuild. The build will fail.
3) Add back the references to the assemblies you just removed.
4) Rebuild and re-run.

It apparently has something to do with one of the assemblies you're using. If I were you, I would add the assembly name when I google the exception.
 
Share this answer
 
Thanks for the quick answer, sir. I am not at my machine that I work on now. I will certainly try your advice.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900