Quitting a Single User Application via Menu vs Screen Quit

Joshua Fletcher (4/15/14 10:44PM)
David Belote (4/15/14 11:48PM)


Joshua Fletcher (4/15/14 10:44 PM)

Without more details (4D version, OS version, OS architecture, total
RAM, etc.) your question can't be answered technically but I think
this Tech Tip covers a lot of it:

http://kb.4d.com/assetid=76398

The threshold completely depends on your application. ?It sounds like
you've already identified the memory-consuming portion of your app so
the next step is to determine the parameters around that consumption.
?My suggestion would be to start logging memory usage (via GET MEMORY
STATISTICS) to get an idea of how memory grows. ?Important: log this
by task, not over time (or in addition to over time). ?Work to
identify the maximum delta for a given task and set that as your
threshold. ?That way you know the user can complete any single task
before you kick them out.

Kind regards,

Josh

--
Josh Fletcher
Technical Account Manager
4D, Inc

-----Original Message-----
/color><color><param>8826F,0000,8219/param>FFrom:
4d_tech-bounces@... [mailto:4d_tech-bounces@...
On Behalf Of Cannon Smith
Sent: Tuesday, April 15, 2014 12:47 PM

Hi Everyone,

Lately we?EUR^(TM)ve had a couple occasions where a client computer
ran low on
memory and ended up corrupting some data. I?EUR^(TM)m pretty sure the
users saw
the OS memory warning and just dismissed it. There is only one
situation
where I need to worry about Client taking up a lot of memory so
I?EUR^(TM)m
wondering if there is a good way of programmatically checking for a low
memory situation and then handling things in code before corruption can
occur.

Does anyone do this? Which commands do you use? I assume GET MEMORY
STATISTICS? What is a safe threshold to watch for?

Thanks.

/color><color><param>00000,0000,DDEE/param>-------------------------------

Button
Date: Tue, 15 Apr 2014 23:48:02 -0600
From: David Belote <dbelote@...

When I build a single user application for Mac, 4D v13.4 inserts a
pulldown
menu next to the Apple Menu for my application <ApplicationName>,,
just like
it should. ?At the bottom of that pulldown menu, there is a Quit
<ApplicationName> where you can also use the Apple-key Q shortcut
key. ?The
trouble is, that Quit command does nothing rather than quit my
application.
I?m thinking that it is because I used the DIALOG command to put up
the
screen. ?I have a Quit button on the screen that invokes QUIT 4D and
that
works fine. ?I want to connect QUIT 4D with that Quit
<ApplicationName> menu
pulldown but I can?t seem to do that. ?How is this accomplished?

Thanks,

David Belote
Colorado Springs, CO USA

David Belote (4/15/14 11:48 PM)

Button

When I build a single user application for Mac, 4D v13.4 inserts a
pulldown
menu next to the Apple Menu for my application <ApplicationName>,,
just like
it should. ?At the bottom of that pulldown menu, there is a Quit
<ApplicationName> where you can also use the Apple-key Q shortcut
key. ?The
trouble is, that Quit command does nothing rather than quit my
application.
I?m thinking that it is because I used the DIALOG command to put up
the
screen. ?I have a Quit button on the screen that invokes QUIT 4D and
that
works fine. ?I want to connect QUIT 4D with that Quit
<ApplicationName> menu
pulldown but I can?t seem to do that. ?How is this accomplished?

Thanks,

David Belote
Colorado Springs, CO USA

Reply to this message

Summary created 4/16/14 at 1:57PM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com