Re: [Flashcoders] Long running tablet apps

2012-11-30 Thread Kevin Newman
I have a task server running on AIR (for generating images and other 
static website assets - it's part of a CMS) running on a local machine 
that stays up for weeks. You'll have to find and fix any memory leaks, 
or infinite event loops (and event handler build ups, etc.), and things 
like that. AIR itself shouldn't have any problem running that long 
(barring of course any uncovered bugs in uncovered corners of the AIR 
API that you may uncover).


Of course, it can be pretty difficult to find this kind of stuff without 
a good debugger and profiler - and debugging and profiling workflow.


The event stuff is probably the hardest part to manage in the Flash API 
with regard to memory leaks. You really do just have to make sure to 
unhook all the events once they are no longer needed - or even better, 
just reuse the ones you set only once.


Kevin N.


On 11/23/12 5:27 AM, Paul A. wrote:
I've been asked about making a long-running app for a Samsung android 
tablet.


In the past, I made one for a windows tablet but there was clearly a 
memory leak (not that I could find it in my code) and after being 
active for many, many hours it would hit a problem.


We looked at automating a restart of the app to get around this.

If I encounter the same issue on the Samsung, would I be able to 
restart the app before it happens?


Or does anyone who has developed similar have any advice?

Thanks,

Paul
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Long running tablet apps

2012-11-30 Thread Kevin Newman
I'm running an AIR based task server on Windows XP - for weeks at a time 
(only patch Tuesday knocks it down). So this can be done. :-)


Kevin N.


On 11/23/12 7:23 AM, Hans Wichman wrote:
I wouldn't put too much time into it, noone realistically expects 
windows to run for a couple of weeks, let alone your app on a samsung 
tablet ;)). 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread David Hunter
h, how long are you talking it being used for?

I have made apps for samsung galaxy tabs that have run all day and don't
seem to have had too many problems (well not ones they've told me about!)
and I think sometimes they were left on for days and still worked.

But we do include functionality so the user can quit the app within the app
if necessary.

David


On 23 November 2012 10:27, Paul A. p...@ipauland.com wrote:

 I've been asked about making a long-running app for a Samsung android
 tablet.

 In the past, I made one for a windows tablet but there was clearly a
 memory leak (not that I could find it in my code) and after being active
 for many, many hours it would hit a problem.

 We looked at automating a restart of the app to get around this.

 If I encounter the same issue on the Samsung, would I be able to restart
 the app before it happens?

 Or does anyone who has developed similar have any advice?

 Thanks,

 Paul
 __**_
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
David Hunter

www.davidhunterdesign.com
+44 (0) 7869 104 906
@DHDPIC
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Paul A.

On 23/11/2012 11:27, David Hunter wrote:

h, how long are you talking it being used for?


Client described it as a couple of weeks!

Essentially the client pulled the power at the end of the day but the 
battery kept the tablets alive overnight until power was restored.


I have made apps for samsung galaxy tabs that have run all day and don't
seem to have had too many problems (well not ones they've told me about!)
and I think sometimes they were left on for days and still worked.

But we do include functionality so the user can quit the app within the app
if necessary.

David


On 23 November 2012 10:27, Paul A. p...@ipauland.com wrote:


I've been asked about making a long-running app for a Samsung android
tablet.

In the past, I made one for a windows tablet but there was clearly a
memory leak (not that I could find it in my code) and after being active
for many, many hours it would hit a problem.

We looked at automating a restart of the app to get around this.

If I encounter the same issue on the Samsung, would I be able to restart
the app before it happens?

Or does anyone who has developed similar have any advice?

Thanks,

Paul
__**_
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Hans Wichman

Hi,

I wouldn't put too much time into it, noone realistically expects 
windows to run for a couple of weeks, let alone your app on a samsung 
tablet ;)).


That said, the demand being unrealistic, I'd at least opt to get an 
unrealistic price for it as well.


The sane thing would be in my opinion to say that you are doing 
everything you can to manage and release memory correctly (as you 
should), but that you have no influence over the underlying software and 
hardware platform and that autorebooting has no added benefit 
whatsoever. Save the state and restore it on the next launch, easy and 
cheap.


My 2 cnts,
JC

ps this is true anyway, the underlying os might opt to kill your app 
anytime it wishes without specifying why, as may the user.


On 23-11-2012 13:14, Paul A. wrote:

On 23/11/2012 11:27, David Hunter wrote:

h, how long are you talking it being used for?


Client described it as a couple of weeks!

Essentially the client pulled the power at the end of the day but the 
battery kept the tablets alive overnight until power was restored.


I have made apps for samsung galaxy tabs that have run all day and don't
seem to have had too many problems (well not ones they've told me 
about!)

and I think sometimes they were left on for days and still worked.

But we do include functionality so the user can quit the app within 
the app

if necessary.

David


On 23 November 2012 10:27, Paul A. p...@ipauland.com wrote:


I've been asked about making a long-running app for a Samsung android
tablet.

In the past, I made one for a windows tablet but there was clearly a
memory leak (not that I could find it in my code) and after being 
active

for many, many hours it would hit a problem.

We looked at automating a restart of the app to get around this.

If I encounter the same issue on the Samsung, would I be able to 
restart

the app before it happens?

Or does anyone who has developed similar have any advice?

Thanks,

Paul
__**_
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.**com Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders 








___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Paul A.

On 23/11/2012 12:23, Hans Wichman wrote:

Hi,

I wouldn't put too much time into it, noone realistically expects 
windows to run for a couple of weeks, let alone your app on a samsung 
tablet ;)).


That said, the demand being unrealistic, I'd at least opt to get an 
unrealistic price for it as well.


The sane thing would be in my opinion to say that you are doing 
everything you can to manage and release memory correctly (as you 
should), but that you have no influence over the underlying software 
and hardware platform and that autorebooting has no added benefit 
whatsoever. Save the state and restore it on the next launch, easy and 
cheap.


Well yes. The app has no real state to worry about. The question was 
about whether anyone had managed to operate an app in these 
circumstances - on the windows tablet there was a possibility of 
restarting the app automatically via an external job.


It's not a normal use-case for the technology, that's for sure. The 
problem wouldn't exist if the tablets could be shut-off on loss of power 
and automatically start again on power being re-applied and run the app.




My 2 cnts,
JC

ps this is true anyway, the underlying os might opt to kill your app 
anytime it wishes without specifying why, as may the user.


On 23-11-2012 13:14, Paul A. wrote:

On 23/11/2012 11:27, David Hunter wrote:

h, how long are you talking it being used for?


Client described it as a couple of weeks!

Essentially the client pulled the power at the end of the day but the 
battery kept the tablets alive overnight until power was restored.


I have made apps for samsung galaxy tabs that have run all day and 
don't
seem to have had too many problems (well not ones they've told me 
about!)

and I think sometimes they were left on for days and still worked.

But we do include functionality so the user can quit the app within 
the app

if necessary.

David


On 23 November 2012 10:27, Paul A. p...@ipauland.com wrote:


I've been asked about making a long-running app for a Samsung android
tablet.

In the past, I made one for a windows tablet but there was clearly a
memory leak (not that I could find it in my code) and after being 
active

for many, many hours it would hit a problem.

We looked at automating a restart of the app to get around this.

If I encounter the same issue on the Samsung, would I be able to 
restart

the app before it happens?

Or does anyone who has developed similar have any advice?

Thanks,

Paul
__**_
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.**com 
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/**mailman/listinfo/flashcodershttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders 








___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders