C# .NET - I want to Count Large Amt. of Size Pdf Page In C#.NET(Help me.)

Asked By ALOK RANJAN on 15-Jan-13 01:29 AM
GD mng Frendz,
                           I want to count pdf page of any size of folder by Itextsharp dll. but there is an error occurred
                           while page counting is going on.  My folder is containing approx. 50 pdf file and every pdf file has 50                              pages .when we start our counting there is an error occurred:
  The CLR has been unable to transition from COM context 0x52b0048 to COM context 0x52b01b8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.   
please resolve this problem . How  we count all pdf pages in another way.
it's very urgent .

Danasegarane Arunachalam replied to ALOK RANJAN on 17-Jan-13 06:00 AM
Have you tried this one?