Jump to content


No end command?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,961 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
The 'end' command does not seem to be supported in .NET CF for SmartPhone...

So would I be right in saying that, in line with the Microsoft Logo Certification guidelines, you cannot 'quit' an application?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#2
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,961 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
OK, it's sad to answer your own question, but the function is:

Application.Exit();

:)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#3
NeilC_MVP

NeilC_MVP

    Newbie

  • Members
  • Pip
  • 44 posts
  • Location:Llanberis, Gwynedd, UK
  • Interests:C#, .NET Compact Framework, Smartphones, Pocket PCs, rock climbing, mountaineering, mountain biking
There's nothing like solving your own problems!

Neil Cowburn
  Microsoft MVP (.NET Compact Framework)

  www.opennetcf.org | http://blog.opennetcf.org/ncowburn/

#4
joelj

joelj

    Newbie

  • Members
  • Pip
  • 35 posts
  • Location:West Sussex, UK
I think you need to do a this.Close(); from the open form. When the last form is closed the app dies. Application.Exit() isn't great - it can bypass a bit of garbage collection.

hth

joel


#5
ultimasnake

ultimasnake

    Addict

  • Members
  • PipPipPipPipPip
  • 758 posts
  • Location:Amsterdam Holland
  • Interests:Programming<br />Gaming<br />Woman :P
  • Devices:Imate JAM/Orange E200
this.dispose
and then
application.exit

and maybe GC.collect before even the close...

that is one of the best ways..

End doesnt exist in .net anymore (not even the full .net library)

Current Project :
Smart commander
Great new application to control your pc

Smart Browser the (first) PIE alternative
Click here for the official website

Try some other great free software like :
Gaydar
Homers Bar Quotes
Erotic dice

and soon more at ultimasoftware

#6
NeilC_MVP

NeilC_MVP

    Newbie

  • Members
  • Pip
  • 44 posts
  • Location:Llanberis, Gwynedd, UK
  • Interests:C#, .NET Compact Framework, Smartphones, Pocket PCs, rock climbing, mountaineering, mountain biking
As a best practice, it is not advisable to call GC.Collect() since the GC is asynchronous and may well be in the middle of a clean-up cycle when you call GC.Collect().

Neil Cowburn
  Microsoft MVP (.NET Compact Framework)

  www.opennetcf.org | http://blog.opennetcf.org/ncowburn/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users