Error after Obfuscation
winman
Posts: 8
I am using Smart Assembly 6 for obfuscating my vb.net application.In my code i do have line of a code as MSFG1.AddItem("") . After obfuscation when the exe file is opened it gives error as "Object reference not set to an instance of object" .If i use index in AddItem that is code will be MSFG1.AddItem("",0) will not give any error while running the exe crated and works fine. So my question is why does AddItem to AxMSFlexGrid without an index gives error after building exe in SmartAssembly?
Comments
Without a code sample, it's hard to say. It might be because the empty string value is changing with the encoding but supplying the index changes the behaviour (you could try changing it to MSFG1.AddItem(string.empty) instead?)
Failing that, maybe try generating a debugging PDB with Smartassembly so you can step through and see what happens/what's null?
Redgate Software
Redgate Software
Now i have exe which is obfuscated and .pdb file. But how can i read these or where should i set break point. I can set break point in VS and run the code for normal projects.But as you said where should i keep break points?And how to troubleshoot?
Redgate Software
I have only used break points in my code and debug the code. I haven't used with the application itself.
So please provide more information on how it can be done?
(I should point out this is all nothing to do with Smartassembly, but simply how to debug a running process)
Redgate Software