Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by bjornlof · Jan 17, 2014 at 03:37 PM · dllimportfallback

DLL fallback path error

Hey! I get a really strange path problem for you.

I've made a program which import a DLL file I've made. It works fine on my computer (using Win8).

But when I try to run it on another computer (Win7) I get the following error when the application tries to find my DLL file:

 Fallback handler could not load library
 C:/Users/Public/RoboZone2/RoboZone_Data/Mono/.\C:/Users/Public/RoboZone2/RoboZone_Data/Plugins/MyPlugin.dll

Has anyone encountered something similar? What's up with the mix of "/" and "\\"?

Any help would be really appreciated!

Thanks :)

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nyxo · Mar 23, 2014 at 07:20 PM 0
Share

I've got the same problem myself. It runs fine for me in the editor, and after a build, but when I give the build to my friend and he runs it on his PC, the DLL fails to load.

We're both running Win7, and when we look at the output_log for him, it shows that same strange "double path" thing.

Another thing to note is that after all those "Fallback handler" lines, it shows a DllNotFoundException with a path that points straight to the DLL. We've literally taken that exact path and copied/pasted it into explorer, and the file is there.

avatar image Bunny83 · Mar 23, 2014 at 07:28 PM 0
Share

Well, first what kind of DLL? I could slap $$anonymous$$icrosoft for using that extention for both, native and managed DLLs. Second it might by a security problem on the PC. What rights does the user have which starts the game / application?

Next thing you should try is moving the whole game to a more general path which doesn't belong to a certain user.

avatar image BasP · Aug 06, 2014 at 09:59 AM 0
Share

Have any of you figured this out? Because I'm running into the exact same problem.

avatar image BasP · Aug 06, 2014 at 10:35 AM 0
Share

For anyone in the future who is also running into this problem: in my case this was solved by changing the Unity project's architecture from x86_64 to just plain x86. It turned out the dll I was importing wasn't x64 compatible, so check for that. Also, I needed to manually copy the .dll to the same folder where my game's executable resided. Once I did this everything worked.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Nyxo · Mar 25, 2014 at 02:16 AM

The solution to my problem was actually that my DLL had dependencies that weren't being found. For whatever reason, Unity interpreted this as being unable to find the DLL, when in reality it was just a matter of being unable to LOAD the DLL.

I used dependency walker to check out the DLL on my friend's system, and found out that it was missing some DLLs from a microsoft redistributable package.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BasP · Aug 06, 2014 at 10:01 AM 0
Share

I tried this, and while it did miss some dependencies (API-$$anonymous$$S-WIN-CORE-$$anonymous$$ERNEL32-PRIVATE-L1-1-1.DLL, API-$$anonymous$$S-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL, and API-$$anonymous$$S-WIN-SERVICE-PRIVATE-L1-1-1.DLL), I also have an older version of the application where it -does- work, and that DLL is missing the exact same dependencies.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

ionic.zip.dll does not work in build 0 Answers

How do I cast an IntPtr to another class? 0 Answers

csc.rsp works in editor but throws an error when building 0 Answers

Missing using directive with imported c# .ddl 1 Answer

DLLs work on Windows but not on Android 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges