Hi James,
The pointers should stay valid!
Regards,
Dom
On Tuesday, March 08, 2011 05:22:43 pm James McGill wrote:
> Hi,
>
> Just a quick query.
> With the following code:-
>
> PdfMemDocument* pDoc = new PdfMemDocument();
> PdfPage* pPage0 = pDoc->CreatePage( PdfRect(0, 0, 400, 400) );
>
> int nPageNum = pPage0->GetPageNumber();
> PdfPage* pPage1 = pDoc->CreatePage( PdfRect(0, 0, 400, 400) ); // pPage0
> becomes invalid
> nPageNum = pPage0->GetPageNumber(); // crash
>
> For me (on Windows x86) the final line will crash as pPage0 becomes invalid
> with the CreatePage call.
>
> My question is:-
> Is this the expected behavior i.e. CreatePage and GetPage are returning
> volatile pointers?
>
>
> Thanks,
> James
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users