Dmitry, it doesn't explain why FtrPtrFree() fails, since (supposedly)
DmWrite() cannot write outside the bounds.

Darren, are you storing your handle/pointer in a location that is not always
available to you? Someone already mentioned that maybe it is in a global at
a time you do not have access to globals? In that case, it is not the free
that fails, but a bad pointer or indirect reference.
On Mon, Mar 9, 2009 at 10:57 AM, Dmitry Grinberg <[email protected]> wrote:

> There is NO special procedure
> Did you read my last post - it 100% answered why you have problems...
> ----
> Best Regards,
> Dmitry Grinberg
> (847) 226 9295
>
>
>
>  On Mon, Mar 9, 2009 at 2:42 AM, Darren Barnes <[email protected]>
> wrote:
> >
> > You are using both MemHandleNew and MemPtrNew to allocate 1 chuck ??
> > Use one or the other, not both.
> >
> > in reply :
> >
> > the three function pairs that are having problems are
> > MemHandleNew/MeHandleFree,
> >
> > MemPtrNew/MemPtrFree and FtrPtrNew/FtrPtrFree.
> >
> > The malloc is for a list during the lifetime of the application, a desk
> > accessory, as such is only around 1 to 5 kb.
> >
> > Because of resets with one pair of functions the others have been tried,
> > without success.
> >
> > If FtrPtrNew is used without FtrPtrFree then a list can be retained
> without
> > causing a reset, but that leaves a chunk in storage until next reset.
> >
> > The question now is :
> >
> > Is there special procedure involved with mallocs on an nvfs enabled
> device ?
> >
> > If so what are those procedures? There is no instruction in the
> > documentation.
> >
> > many thanks and regards
> >
> > Darren
> >
> > --
> > For information on using the ACCESS Developer Forums, or to unsubscribe,
> > please
> > see http://www.access-company.com/developers/forums/
> >
> > --
> > For information on using the ACCESS Developer Forums, or to unsubscribe,
> > please see http://www.access-company.com/developers/forums/
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>



-- 
[Jeff Loucks, Gig Harbor, WA, USA]

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to