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
  1. Home
  2. Mobile Development
  3. Mobile
  4. Create "service-like" app

Create "service-like" app

Scheduled Pinned Locked Moved Mobile
questioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rico83
    wrote on last edited by
    #1

    Hello all, i have a quick question... i need to create a "service-like" application in c# that will basiclly run in the background with no gui... like a console app that stays open untill the device has reset. any ideas on how i could go accross this? its an app that will monitor the gps data and intercept sms messages that have commands etc... i created a device app but the window will always show up (even though i tried this.hide() and this.visible = false in the onLoad) Cheers!

    M 1 Reply Last reply
    0
    • R rico83

      Hello all, i have a quick question... i need to create a "service-like" application in c# that will basiclly run in the background with no gui... like a console app that stays open untill the device has reset. any ideas on how i could go accross this? its an app that will monitor the gps data and intercept sms messages that have commands etc... i created a device app but the window will always show up (even though i tried this.hide() and this.visible = false in the onLoad) Cheers!

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Remove the call to Application.Run in the Main function. Instead, put your code in Main, in the same way that you would write a console application for the desktop. Note that Windows CE (and hence Windows Mobile) only supports 32 processes, some of which are reserved for system processes. You should try not to create too many processes, so that the user isn't restricted too much (Windows CE will close processes that haven't been used recently, but only if they have a window, I believe). There is a model for loading code as a 'service', but this really requires writing your code as a native C++ DLL to a specific service model.

      Stability. What an interesting concept. -- Chris Maunder

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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