is the buffer txt allocated?
if so, please do an ASSERT(MemPtrSize(txt)>NameLen), and make sure that is ok

On Nov 15, 2007 2:08 PM, Jonathan Carse <[EMAIL PROTECTED]> wrote:
>
> Interesting about the NULL behavior.
> txt was generated using StrPrintF(), which I never had problems with. I'm
> pretty sure it appends NULL to the end of the string.
>
>  So, nice idea but not the case here.
>
> What else can it be?
>
> 2007/11/15, JamesSturdevant <[EMAIL PROTECTED]>:
>
> > If memory serves, txt must be NUL terminated, even with the NameLen
> > paramter. Debugging may move some items around in memory that provide an
> > "invisible" NUL.
> >
> > JamesS
> >
> > Jonathan Carse wrote:
> > > Hey folks.
> > >
> > > A simple call to WinDrawChars() causes a fatal exception:
> > >
> > > WinDrawChars((Char*)txt, NameLen, bounds->topLeft.x+nRightX-NameWidth,
> > > bounds->topLeft.y );
> > >
> > > I would post the values of the parameters, but first of all I must
> > > mention that if I put a breakpoint at this line, and step through it, it
> > > works fine.
> > > When no debugger is attached a "Fatal Alert: Fatal Exception" is shown.
> > >
> > > OS: Garnet 5.4.7, on a Tungsten E2
> > >
> > > If anyone encountered this, I will appreciate it greatly if he/she
> > > advises me on what to do.
> > >
> > > Thanks
> >
> > --
> > 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/
>



-- 
Best Regards,
Dmitry Grinberg
(847) 226 9295

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

Reply via email to