Hello Every one,
I have been using PDFsharp to generate PDF file for my Visual C++ application.
The problem is that every time I regenerate the same file( editing the file name) an exception error occurs as shown below.
I need to re-run my application in order to regenerate the same file....

The application is working fine for the first generation( compile and running good). But the odd issue is that the error is happening after regeneration..
Do you guys have any idea to solve my issue?
I have tried gfx->Dispose(); but dispose is not a member of PdfSharp::Drawing::XGraphics upon compiling.
Hoping for positive response.
Regards,
Roel