hi,<br>i am using cairomm to render a pdf/ps files with great data, i use this function<br> surface = Cairo::PdfSurface::create(writer,&vectdata,m_rect.Width(),m_rect.Height());<br><br>static cairo_status_t<br>writer (void *closure, const unsigned char *wdata, unsigned int len)<br>
{<br><br>CByteArray* buffer = reinterpret_cast<CByteArray*>(closure);<br> <br>const int currentLength = buffer->GetSize();<br>const int newLength = currentLength + len;<br>buffer->SetSize(newLength,10*len);<br>
<br><br>BYTE* buff= buffer->GetData() + currentLength;<br>::CopyMemory(buff,wdata,len);<br>}<br><br>how to speed the process, do i need to lock process here, or how i can put a fire&forget algo herre <br>10x<br>