I have a very small component that uses sqlite dependencies.
When I compile it, it runs on my machine but on others it seems to cause problems loading the SQLIte.Interop.Dll:
Those HResult errors means that compiler does not find native cpp .dll
Does this .dll interop with cpp pinvoke methods that are not in your libraries folder?
The easiest way to debug this is to skip all the rhino interface. Create an app with console application. Once you are able to run it there wrap it to gh component.
thanks again,
as I mentioned I am not doing this very often, that’s why I am not sure if I did it right.
So the console is not showing the value, but whilst debugging I can see the values from the table was added to the list, which makes me think, it is working.
If you just copy paste this SQLite.Interop.dll from your computer to grasshopper folder do you still get error. I mean manually copying from one of these directories:
Hi, thanks for the offer. I tried everything you described(as I understood), but still it won’t work on the other machine.
It seems to be too heavy for attaching here, I’ll send you it to you in a pm.
not sure if this is part of the problem, but try to download the latest SQLite via package manager in visual studio. Then make sure your solution is targeting the same .NET Framework version as the latest SQLite build is uses. If fore some reason it uses a higher .NET Framework that is currently installed in you pc ( you will notice this in VS) just download it and repeat the process.