Steve Austin wrote:
> hi all,
> can someone suggest how to pass the "MEM-02 Low Storage Memory During
> Execution" test ?
>
> is it a valid solution for this test:
> "before writing to a file , check the available disk space, if the available
> space is less then panic the user thread? "
>
> or if there is some other recomended solution, please share ?
>
> wbr,
> Steve.
>
>
Panic? No, you have to handle it gracefully.
AMK
"AMK" <[email protected]> wrote in message news:7gPqdkuNGHA.3388@extapps30...
> Steve Austin wrote:[color=green]
> > hi all,
> > can someone suggest how to pass the "MEM-02 Low Storage Memory During
> > Execution" test ?
> >
> > is it a valid solution for this test:
> > "before writing to a file , check the available disk space, if the[/color]
available[color=green]
> > space is less then panic the user thread? "
> >
> > or if there is some other recomended solution, please share ?
> >
> > wbr,
> > Steve.
> >
> >
> Panic? No, you have to handle it gracefully.
>
> AMK[/color]
so to pass this test , all i need to do is "do not attempt to write to any
file if memory is low" , am i getting it ?
Steve.
Steve Austin wrote:
> "AMK" <[email protected]> wrote in message news:7gPqdkuNGHA.3388@extapps30...[color=green]
>> Steve Austin wrote:[color=darkred]
>>> hi all,
>>> can someone suggest how to pass the "MEM-02 Low Storage Memory During
>>> Execution" test ?
>>>
>>> is it a valid solution for this test:
>>> "before writing to a file , check the available disk space, if the[/color]
> available[color=darkred]
>>> space is less then panic the user thread? "
>>>
>>> or if there is some other recomended solution, please share ?
>>>
>>> wbr,
>>> Steve.
>>>
>>>
>> Panic? No, you have to handle it gracefully.
>>
>> AMK[/color]
>
> so to pass this test , all i need to do is "do not attempt to write to any
> file if memory is low" , am i getting it ?
>
> Steve.
>
>[/color]
Yes that will do, better than "do not attempt"; "sorry, not enough space
available" and you can present another location (phone mem).
AMK