> >>-    const INT lx = himl->cx * pimldp->i + pimldp->xBitmap;
> >>-    const INT ly = pimldp->yBitmap;
> >>+    static INT lx;
> >>+    static INT ly;
> >>   
> >>
> >
> >Should this be really static? Can't this function be called reentrant?
> >
> > 
> >
> well, static is no worse than const ;)

It is. Your program is no longer threadsafe.

Ciao, Marcus

Reply via email to