SEHException when using PrintManager.SubmitPrint().

SEHException when using PrintManager.SubmitPrint().

Anonymous
Not applicable
645 Views
3 Replies
Message 1 of 4

SEHException when using PrintManager.SubmitPrint().

Anonymous
Not applicable

Hi, I am getting this error and Its completely thrown me for a loop. 

 

                                                            SEH.PNG

 

I am printing sheets using the PrintManager and my program woulds fine on a smaller project printing 1 or 2 viewsheets... but for some reason when I run my program on a bigger project with more viewsets the program crashes my display. 

 

SEHException stands for Structure Exception Handler Exception.

 

There has been a fiew posts on stackoverflow on this but overall they have been unhelpful.

 

The error is caused by the line printManager.SubmitPrint();

I guess it is a longshot and maybe this isnt the right place to be posting as i think its more of a .NET issue then a revit API issue. but if anyone has had a problem like this it would be very helpful to know how i should approach diagnosing what the problem is.

 

Thank you,

 

Jack

 

 

 

... I will supply code if necessary.

0 Likes
Accepted solutions (1)
646 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Managed to fix it, the test case was using was printing out an extra sheet i was not aware of, i dont know why it was causing the issue but it is fixed now.

 

Apologies for wasting your time.

0 Likes
Message 3 of 4

rosalesduquej
Alumni
Alumni

Hi Jack,

 

Not a waste of time at all :), Actually if you could share with the Dev Community what you did it will be great for when a future similar question comes up they can refer to your answer. Glad you were able to figure it out.

 

Best,



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 4 of 4

Anonymous
Not applicable

The document i was printing from contained about 70 sheets and i thought i had the correct sheets in my set selected but there was one i left checked by accident. for some reason that particular sheet was throwing this exception when printing it. It was quite a large detailed sheet and i do not know why it was crashing my Display driver, sorry I can't help any more its probaby a problem caused by my computer, it needs replacing.

0 Likes