• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

VB.Net 2008 and Loaderlock

Messages
34
Country
belgium
Hello

Before going into my problem, I would like to thank you scruffyduck for this valuable application.

In my free time I'm trying to learn VB.Net.So I'm pretty new in Vb.Net. While I was trying to use SDE, I got "LOADER LOCK" message. May be there is something wrong in my code :

Code:
Dim bglfile As New ScruffyDuck.Flightsim.Scenery.SceneryFile.SceneryFile

As soon as VB.net hits this line next error message appears :

" LoadeLock was Detected : DLL 'Z:\My Documents\My Sources\VB.Net\Read BGL\bin\ChilkatDotNet.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang."

I checked my system even rebooted the system so that there isn't any application trying to access to that file.

Anybody has any idea about it ?

Thank you all, and I wish you all happy new christmas.

KAYA
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,932
Country
us-wisconsin
Hi KAYA.

I found this:

i got the following error "LoaderLock Was Detected" when i tried some sample Mabaged DirectX codes.I have investigated matter and found a solution like that.

1)Opened up Debug Menu and selected Exceptions...
2)I have selected Managed Debugging Assistants and found LoaderLock
3)and remove the selected value.

then re-compile my solution.

Worked Perfect! didnt get error again any time

Hope this helps you...

Dick
 
Messages
34
Country
belgium
Hi Dick

Thanks for reply. Actually I found that also and applied it just to get ride of that stupid warning.

But I thought that I was doing something wrong.

Kaya
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,853
Country
unitedkingdom
No that is common with Visual Studio unfortunately. I have it turned off all the time
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,932
Country
us-wisconsin
Hi Kaya.

It seems to be a debugging message, and does not affect the release program.

Also, some external programs seem to trigger this message... using itunes in the background can do this, even though Visual Studio and itunes have no relation to each other!

Dick
 
Top