yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.56k stars 1.62k forks source link

Runtime issue crashing application and not going into try/catch while using referenced ITextSharp assembly #208

Closed milsnips closed 9 years ago

milsnips commented 9 years ago

ive got a method which uses ITextSharp library to generate a PDF document, then calls Process.Start(...) to open the pdf. This runs fine when not obfuscated but after i run ConfuserEx, the app just crashes and doesnt go into the try/catch error handler. I tried attaching to the debugger but it keeps loading debug symbols and at the end of it still doesnt show me where the error is.

UPDATE: after some initial trial and error debugging, the app crash seems to occur right when the code calls:

using (PdfWriter w = PdfWriter.GetInstance(doc, fs))

Version of ItextSharp is latest 5.5.5 from nuget but i dont think the assembly is problem as it works fine before obfuscating my assemblies.

is there any way i can enable some diagnostic debugging outputthis better to see what might be going wrong? Only happens in this area of code.

milsnips commented 9 years ago

Sorry, false alarm.. i had the windows SDK "AppVerifier" running on my EXE and it was crashing on the instantiation of iTextSharp library so i think the problem is isolated in that, not as part of confuserEx.