LoadLibrary() hangs under vista

LoadLIbrary("xxx.dll") works fine on XP but hangs on Vista. Any clues?
kk8Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DanRollinsCommented:

Could you try loading the module with
   LoadLibraryEx()
  http://msdn.microsoft.com/en-us/library/ms684179.aspx
and see if the same error occurs?
0
kk8Author Commented:
Hi Dan,

Thanks for helping me out here. I did try that before I posted, the function has a 3rd argument with the choices of

0. NULL
1. LOAD_IGNORE_CODE_AUTHZ_LEVEL
2. LOAD_WITH_ALTERED_SEARCH_PATH

3. DONT_RESOLVE_DLL_REFERENCES
4. LOAD_LIBRARY_AS_DATAFILE
5. LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE
6. LOAD_LIBRARY_AS_IMAGE_RESOURCE


with 0-2, the behavior is same as LoadLibrary, for others it does not hang but does not get the job right. GetProcAddress fails to extract the correct loc.

Any clues? Thanks
0
kk8Author Commented:
Looks like I finally figured out, apparently its the project settings thats dragging the func into such behavior. A clean project just with loadlibrary works fine...
Thank you anyways
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.