Neelesh Chitari <[EMAIL PROTECTED]> wrote:
> The function works fine for the very first time but from second time and
> onwards the function can only be executed on step by step tracing i.e.only in
> the debug mode.
> But even then while debugging it gives a runtime fatal error saying at any
> point of time -
> "XXX has just written directly to the memory location zero(NULL)."
>
> My queries are -
> Why does it work fine just for the very first time only and not again ?
Well, since you are stepping through your code with the debugger, don't
you know exactly where the fatal error is occurring? And since you can
reliably recreate the problem at will, can't you examine all your
variables just before the crash to determine which values are out of
bounds? It sounds to me like you have everything you need to solve your
own problem.
I only wish that all the bugs I have to find and fix
1) could always be reproduced at will
2) in the debugger
--
Roger Chaplin
<[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html