PInvoke In SQLite

ceaser

Active Member
Licensed User
Hi

I wonder if somebody can help me. As soon as my program wants to open a Database, I get the error message "Can't find PInvoke DLL SQLite.Interop.060.DLL".

I never had this error before and I have not changed anything in the program:BangHead:

Thanks
Michael
 

ceaser

Active Member
Licensed User
Hi Erel

That file has been copied to my handheld. This is what I cannot understand, it used to work.

Can I sent you a copy of the program to see what I am doing wrong?

Thanks
Michael
 

agraham

Expert
Licensed User
Longtime User
Are you trying to run it in the device IDE? If so make sure there is a copy of the Interop library in the Basic4ppc Program folder on the device. When running in the IDE the device thinks that is where the program started from and looks there for native libraries.
 

ceaser

Active Member
Licensed User
Hi Agraham:sign0188:

Thanks for your help, but it still does not work:BangHead::BangHead:

I have copied the Interop dll to the Basic4ppc folder, but no success. What I cannot understand is that the stuff used to work. The only difference is the CAD module that has been rewritten and is much bigger than the old one. The program is about 3.2 Mb big. Could that maybe be the problem?

Something that is also funny, is that on most of the other PDA (Recon & Workabout) it works fine. I have a Recon and it does not work:BangHead: Other surveyors that have 2 Recons will have it working on one PDA but not on the other.

Please advise:sign0085:

Regards
Michael
 

ceaser

Active Member
Licensed User
Hi Agraham

It has been optimized compilied and I am running it from the internal memory. The program is not stored on a SD card.

Regards
Michael
 

agraham

Expert
Licensed User
Longtime User

ceaser

Active Member
Licensed User
Hi Agraham

Thanks for your help:sign0188:

I have found the problem....it is the memory that is running out:BangHead:

What I have done now is to remove the "Stockpile", "Mapping" and "Office" modules and have them as seperate ".exe" files. I am using the "Shell" command to run these programs.

Now it works again!

Regards
Michael
 
Top