Windows Mobile AccessMode.CacheOnly

May 14, 2010 at 2:37 PM

Hi to all,

i'm working on Windows Mobile6 and i would realize an applicationthat works only in Cache Mode.

I've generated an .gmdb file from Windows Application and i've a file named "Vilnius.gmdb": i've copied this file on a storage card ("Storage Card\\Vilnius.gmdb").

On mobile, I'm starting from "Demo.WindowsMobile" and i've modified the MainForm_Load in this way:

MainMap.Manager.Mode = AccessMode.CacheOnly;
menuItemCacheOnly.Checked = true;
menuItemServerAndCache.Checked = false;
menuItemServerOnly.Checked = false;
GMaps.Instance.ImportFromGMDB("Storage Card\\Vilnius.gmdb");

 

but, when i run my application form is blank, without map but only with marker.

Why?

How to proceed?

Thanks a lot!

Antonio

 
Coordinator
May 14, 2010 at 4:59 PM

;} thats crazy to do on mobile, you must prepare you cache on desktop and vacuum your database, and only then copy it to sd card.

p.s. C:\Users\radioman\AppData\Roaming\GMap.NET\TileDBv3\en\Data.gmdb => \Storage Card\GMap.NET\TileDBv3\EN\Data.gmdb

May 16, 2010 at 12:29 PM

Hi radioman,

i prepared file "Vilnius.gmdb" from my desktop application: in my first message i wrote "I've generated an .gmdb file from Windows Application", but, now, i would to load it from my mobile and it doesn't work.

 

On mobile i used this cose

MainMap.Manager.Mode = AccessMode.CacheOnly;
menuItemCacheOnly.Checked = true;
menuItemServerAndCache.Checked = false;
menuItemServerOnly.Checked = false;
GMaps.Instance.ImportFromGMDB("Storage Card\\Vilnius.gmdb");

 

but, when i run my application form is blank.

 

Why?

Thanks!

 

Coordinator
May 16, 2010 at 3:33 PM

forget GMaps.Instance.ImportFromGMDB("Storage Card\\Vilnius.gmdb");, where do you find that you must use it? ;} just copy your desktop cache to mobile, importing works just in desktop

May 17, 2010 at 9:22 AM

I watched this command in desktop application.

I would that mobile works only on cache and i would my cache in Storage Card.

When i Open mobile application i would it load Vilsius.gmdb.

Is it possibile? can you help me?

 

Thanks.

Coordinator
May 17, 2010 at 10:53 AM

Sun at 5:33 PM "just copy your desktop cache to mobile, importing works just in desktop"