Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading a x64 dll #20

Open
gwenzek opened this issue Dec 14, 2015 · 4 comments
Open

Loading a x64 dll #20

gwenzek opened this issue Dec 14, 2015 · 4 comments

Comments

@gwenzek
Copy link

gwenzek commented Dec 14, 2015

Hi, thanks for this integration with ipython, it's really nice.

I can't load dll compiled as 'x64'.
The error I receive is AssemblyLoader failed to load assembly xxx.xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

I tried with the same dll at the same location compiled in 'x86' and in 'AnyCpu' and it works.

Is the kernel launched in a 32-bit mode ?
Is it possible to launch it in x64 ?

@gwenzek
Copy link
Author

gwenzek commented Jan 6, 2016

Okay, I recompiled the Kernel project in x64 mode, and replace the iCSharp.Kernel.exe in AppData\Roaming\icsharp by the x64 version.
Now I can load my x64 dll :-)

I guess there should be an option in Chocolate to use a x64 build of iCSharp.

@den-run-ai
Copy link
Contributor

@gwenzek can you compile in anycpu and check x64 dll?

@gwenzek
Copy link
Author

gwenzek commented Jan 29, 2016

Ok, I retried in AnyCpu and with the "prefer 32 bit" option I don't see my x64 dlls but without it works fine.
But that was expected since I'm on a x64 machine so AnyCpu will be launched in x64 except when "prefer 32 bit" is on.

I think you should provide installation instruction from the sources and therefore let the user choose if he wants a 32bit or 64bit kernel.

@zabirauf
Copy link
Owner

@gwenzek I agree, we should have a better installation mechanism that should work seamlessly for both x86 and x64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants