Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » What is Correct Way to Exit J9/SWT on PPC
What is Correct Way to Exit J9/SWT on PPC [message #467103] Wed, 25 January 2006 03:28 Go to next message
Eddie Atherton is currently offline Eddie AthertonFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

Just starting out with J9/SWT on a PocketPC and couldn't find the
answer to this.

I'm playing around with some screen layouts, so I'm starting and
stopping my application a lot. I'm using the Shell constructor
without any options, so I get the "Smart Minimize". I know I can stop
the application from Setting/Memory, but I also wanted the option to
exit from within the application. I added a Menu bar with an Exit
option, and the listener for this issues a System.exit(0).

But doing this doesn't appear to release the memory used by the
application. Should it.

I decided to ask this here, because I'm also running a J9 "console"
application, and that doesn't seem to have any problems freeing the
memory, which makes me think my question is SWT related.

Cheers,
Eddie
Re: What is Correct Way to Exit J9/SWT on PPC [message #467117 is a reply to message #467103] Wed, 25 January 2006 12:36 Go to previous messageGo to next message
Alexandre Boaventura is currently offline Alexandre BoaventuraFriend
Messages: 31
Registered: July 2009
Member
Eddie Atherton escreveu:
> Hi,
>
> Just starting out with J9/SWT on a PocketPC and couldn't find the
> answer to this.
>
> I'm playing around with some screen layouts, so I'm starting and
> stopping my application a lot. I'm using the Shell constructor
> without any options, so I get the "Smart Minimize". I know I can stop
> the application from Setting/Memory, but I also wanted the option to
> exit from within the application. I added a Menu bar with an Exit
> option, and the listener for this issues a System.exit(0).
>
> But doing this doesn't appear to release the memory used by the
> application. Should it.
>
> I decided to ask this here, because I'm also running a J9 "console"
> application, and that doesn't seem to have any problems freeing the
> memory, which makes me think my question is SWT related.
>
> Cheers,
> Eddie
Hi Eddie,

Did you try to call your application with j9w ? If I'm not wrong, that's
the solution for this problem.


Alexandre
Re: What is Correct Way to Exit J9/SWT on PPC [message #467136 is a reply to message #467117] Wed, 25 January 2006 17:01 Go to previous messageGo to next message
Eddie Atherton is currently offline Eddie AthertonFriend
Messages: 8
Registered: July 2009
Junior Member
On Wed, 25 Jan 2006 10:36:01 -0200, Alexandre Boaventura
<alexandre@gzsistemas.com.br> wrote:

>Hi Eddie,
>
>Did you try to call your application with j9w ? If I'm not wrong, that's
>the solution for this problem.

Sorry, no difference. The memory used still jumps by around 3MB each
time I run the test.

Cheers,
Eddie
Re: What is Correct Way to Exit J9/SWT on PPC [message #467761 is a reply to message #467136] Mon, 06 February 2006 10:29 Go to previous message
No real name is currently offline No real nameFriend
Messages: 92
Registered: July 2009
Member
Eddie Atherton wrote:

> Sorry, no difference. The memory used still jumps by around 3MB each
> time I run the test.

I use PocketPC also. When I wanted a clean exit in the early stages of
development I used SWT.CLOSE to give me an OK button rather that a smart
minimise. This should unload the app.

If that's no use then maybe you are shorting the logic that deals with
disposing the widgets in using System.exit(0) directly? I don't know,
I've never done that myself.

It's not something I've ever been too concerned about - the smart
minimise feature is the way PocketPC works. Users don't exit
applications, they just stay loaded. Some PDAs give you a task switcher
that unloads things.

HTH

andy
Previous Topic:openGL question
Next Topic:Double-clicking in a file-open dialog causes a mouse up event in the parent shel
Goto Forum:
  


Current Time: Mon Sep 23 08:54:53 GMT 2019

Powered by FUDForum. Page generated in 0.01682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top