| Author |
Message |
jsm2000
Joined: 22 Mar 2012 Posts: 3
|
Posted: Mon Mar 26, 2012 8:23 pm Post subject: local variable in error report |
|
|
| When I merge all my DLLS with the EXE, I get local variable in the error report. But when the DLLs are not merged, I do not get local variables. Is this behavior by design or am I doing something wrong? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Tue Mar 27, 2012 9:05 am Post subject: |
|
|
You'll only get information like this in the error report if the methods in question were in an assembly processed by SmartAssembly. If you use merging, the necessary framework is added to the methods so that the variables are included in the error report. If you just distribute the assembly on its' own or embed it, you will not get the variable information. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
jsm2000
Joined: 22 Mar 2012 Posts: 3
|
Posted: Tue Mar 27, 2012 1:22 pm Post subject: |
|
|
Thanks for the explanation.
Previously, I did merge all the DLLs in with EXE but my application also uses an optional MEF-based extension DLL. When I did merge the EXE and DLLS (except the MEF extension) the MEF didn't work. My MEF extension DLL is loaded but the exported/imported interfaces aren't resilved.
Not merging allows the MEF to work. I did try to attribute the interfaces imported/exported with <DoNotPrune(), DoNotObfuscate()> but this work.
Any suggestions? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Tue Mar 27, 2012 2:44 pm Post subject: |
|
|
I don't think they would be. The interfaces are still in the external assembly not processed by SmartAssembly, so it wouldn't know anything about the local variables in there. I take it your last sentence means the assembly no longer works if you merge. Merging will break some code.
Sorry for being so vague - I really need to spend a few days with the assembly code to know what's going on but it sounds to me like it's all expected behavior. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group