Welcome Guest Search | Active Topics | Sign In | Register

Running HtmlToPdf.ConvertHtml in a loop throws exception after a few iterations Options
Charles Okwuagwu
Posted: Sunday, May 19, 2013 11:11:27 PM
Rank: Newbie
Groups: Member

Joined: 8/1/2007
Posts: 5
Running HtmlToPdf.ConvertHtml in a loop throws exception after a few iterations

See Error below:

System.Exception: Maximum number of session reached.

at EO.Pdf.Internal.lo.c.a(hi A_0)

at EO.Pdf.Internal.lo.c.a(Byte[] A_0)

I have tried using a delay in between each call, but its not effective.

This error has become a major pain. please provide a reliable fix!
Charles Okwuagwu
Posted: Monday, May 20, 2013 5:58:57 AM
Rank: Newbie
Groups: Member

Joined: 8/1/2007
Posts: 5
Adding this in the loop This helps...

Threading.Thread.Sleep(250)

but for a loop of over 100 items, its painfully slow.

Any better solutions please?

Thanks!
eo_support
Posted: Monday, May 20, 2013 10:26:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Have you tried the latest build?

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.