Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kowriv

@kowriv
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GPS error ASUS P535
    K kowriv

    Hi, I have an ASUS P535 and I have a problem with GPS. If I use TomTom Navigator, I don't have any problem, but if I use the gps sample from Microft I have the next problem: - Sample project: Microsoft.WindowsMobile.Sample.Location (ProgramFiles\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\Cs\Gps) - Error: In the function WaitForGpsEvents the code stop indefinitily WaitForMultipleObjects - The Microsoft sample, haven't any problem in HTC P3300 - The code and error: private void WaitForGpsEvents() { lock (this) { bool listening = true; IntPtr handles = Utils.LocalAlloc(12); Marshal.WriteInt32(handles, 0, stopHandle.ToInt32()); Marshal.WriteInt32(handles, 4, deviceStateChangedHandle.ToInt32()); Marshal.WriteInt32(handles, 8, newLocationHandle.ToInt32()); while (listening) { int obj = WaitForMultipleObjects(3, handles, 0, -1); (!!!!!ERROR STOP HERE indefinitely!!!!!!!!!!!!!!!!!!!). if (obj != waitFailed) { switch (obj) ... { case 0: // we've been signalled to stop listening = false; break; case 1: // device state has changed if (deviceStateChanged != null) { deviceStateChanged(this, new DeviceStateChangedEventArgs(GetDeviceState())); } break; case 2: // location has changed if (locationChanged != null) { locationChanged(this, new LocationChangedEventArgs(GetPosition())); } break; } } } // free the memory we allocated for the native handles Utils.LocalFree(handles); // clear our gpsEventThread so that we can recreate this thread again // if the events are hooked up again. gpsEventThread = null; } } Some idea or solution? Thank you

    Mobile help c++ tools performance question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups