Re: Help! Tungsten T Constantly Resets



__/ [Logan Shaw] on Wednesday 07 September 2005 12:45 \__

> Paul Nevai wrote:
>> newsgroups@xxxxxxxxxxxxxxx aszonygya:
>> :That's not necessary. Resets are used in operating systems that leak
>> :memory or spawn unnecessary tasks (see signature, 13 days up and still
>> :as 'fresh' as always).
>>
>> What about defective apps? What about unused feature numbers and such
>> kept
>> in the dynamic RAM? I recommend regular soft [pin] resets.


I reset on occasions, but only when symptoms of weakness begin to arise (*).
It is not necessary, however, to 'freshen up' a device as if resetting it
is a 'magic loop'. It's a force of habit to many.


> Don't forget orphaned MemHandles in the storage heap from when the
> programmer did a DmNewHandle() but never got around to doing
> DmAttachRecord(), or from when the programmer did a VFSFileDBGetRecord()
> but didn't free the handle to the temporary memory the OS used to cache
> what's on the SD Card.


I agree that leaked memory is a main concern. If you run heavy applications,
this might make the difference between 2 seconds and 3 seconds, compared
with 2ms and 3ms in basic PIM applications, where it is merely negligible.


> I recommend a soft reset every month or so. More if you notice that your
> free memory (in the storage heap) increases when you do it (until you
> track down the source of the leak).


FileZ allows memory usage to be checked rather readily. I guess there is no
harm in resetting, which might take as little time as looking at memory
usage.


> There are also other reasons besides memory leaks as well. Databases can
> remain locked that don't need to be, apps can be registered for
> notifications
> they don't need, etc. Ideally, none of this happens, but then in the real
> world, software has bugs.
>
> - Logan


That's what I referred to in (*) above.

Best wishes,

Roy

--
Roy S. Schestowitz | Useless fact: 85% of plant life in in the oceans
http://Schestowitz.com | SuSE Linux | PGP-Key: 74572E8E
4:45am up 15 days 6:37, 3 users, load average: 0.93, 0.69, 0.69
.



Relevant Pages

  • Re: ReRun the application..
    ... but I dont have memory leak... ... I just want be able to reset my application ... as 3D Studio Max ... ...
    (alt.comp.lang.borland-delphi)
  • Re: MDAC memory leak
    ... Most libraries place the decision of when to free ... There's a capability of breaking on a particular memory allocation, ... leak 500 objects, on the second test I leak 3, because I fixed the bug). ... "App shows memory leak on some machines." ...
    (microsoft.public.vc.mfc)
  • Re: MDAC memory leak
    ... Also when we used some of the memory leak tools suggested on microsoft site ... A mutex is a considerably less efficient synchronization ... "App shows memory leak on some machines." ...
    (microsoft.public.vc.mfc)
  • Re: Memory leak in the Driver
    ... Paul G. Tobey wrote: ... driver development, it's most likely that you are at fault. ... The QFE has no impact on the leak but one thing is sure, ... i am sure that all the memory that i am allocating in my driver is ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory leak in the Driver
    ... Don't forget that "handles" are memory, too, as are USB packets, data ... someone else is supposed to free it or, maybe, someone else is allocating it ... and *you* are supposed to free it, could be the source of the leak. ... driver development, it's most likely that you are at fault. ...
    (microsoft.public.windowsce.platbuilder)