IActiview.Output Throws Access Voilation Exception

Discussion created by iamlaksh3 on Jun 14, 2011
Latest reply on Jun 15, 2011 by karlsiemsen
I am working on print functionality. Which was working for last two days suddenly I am started getting below error message at below method

   at ESRI.ArcGIS.Carto.IActiveView.Output(Int32 hDC, Int32 Dpi, tagRECT& pixelBounds, IEnvelope VisibleBounds, ITrackCancel TrackCancel)

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

1. There is no code changes.
2.  Map document used is perfectly fine.
3. DB connections in Map doc is good.
4. Generating PDF in C drive has lot of space
5. Created PDF using ArcMap is coming out correctly.
6. Release all connection/db connections correctly.

I could not able to find the exact reason for the issue. Can any one help me out

This is very urgent issue