StackOverflowException

StackOverflowException

Forum member · Mar 15, 2007
I've made a layout in Designer, but when I try to load it in my code, via pdfReport = New DocumentLayout(Server.MapPath("bin/PDFWerkbon.dplx")) I get an unhandled StackOverflowException. Any idea as to what can cause this?

Re: StackOverflowException

Forum member · Mar 15, 2007
Being a bit more specific probably won't hurt my cause :) The document itself does not contain anything special... An image, a couple of linse and rectangles, and labels and record boxes. The code line I mentioned above is the first line with relation to the PDF which is executed. Path name and such seems to be correct.

Re: StackOverflowException

Support · Mar 15, 2007
Hello, Can you please send over the full stack trace of the error and the dplx file to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it and try to find out the cause for the error to occur. Thanks, ceTe Software Support Team.

Re: StackOverflowException

Forum member · Mar 16, 2007
Sorry, but the stack trace is non existant... This is what I get when I click on detail while debugging: {Cannot evaluate expression because the current thread is in a stack overflow state.} There is also nothing sent to the web-browser. I'll send the template file and a reference to this thread to the above mentioned adress. Thanks :)

Re: StackOverflowException

Forum member · Oct 16, 2007
we get this with a couple of documents - using Merger version 2. The DLL simply crashes - not graceful handling of the errors - even if usign a try catch block - bad! Are you [ceTe] able to shed some light on this issue.

Re: StackOverflowException

Support · Oct 16, 2007
Hello, What version and build of our product are you using? Can you please send over the PDF documents and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it to find out what is causing this error to occur. Thanks, ceTe Software Support Team.

Re: StackOverflowException

Forum member · Oct 16, 2007
I cannot send you the PDF documents because they are confidential but heres the info that might help you Visual Studio 2005 ceTe.DynamicPDF.20 -- start code fragment -- FileInfo pdfFile = new FileInfo(fullpath to PDF); // add the cete license ceTe.DynamicPDF.Document.AddLicense(_ceTeSerialNumber); // not demo version ceTe.DynamicPDF.Merger.MergeDocument document = new ceTe.DynamicPDF.Merger.MergeDocument(pdfFile.FullName); // optimise the document //document.PdfFormat = ceTe.DynamicPDF.PdfFormat.SinglePass; document.PdfFormat = ceTe.DynamicPDF.PdfFormat.Linearized; document.PdfVersion = ceTe.DynamicPDF.PdfVersion.v1_7; document.Producer = "Imprima"; document.CompressionLevel = 6; // fails on the next line - and does not go to catch! document.Draw(_outputFolder.FullName + pdfFile.Name); -- end code fragment -- all of the above code is on a try catch block - but this makes no difference as its fails on .Draw loine