Red Gate forums :: View topic - Another Visio programming problem
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Another Visio programming problem

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Roger Billsdon



Joined: 31 Jul 2010
Posts: 9
Location: Cambs, UK

PostPosted: Mon Aug 02, 2010 5:57 pm    Post subject: Another Visio programming problem Reply with quote

Hi
I've hit another problem, this time it's with sinking custom events raised by Visio. The event sink in my program doesn't catch events raised by Visio if the SmartAssembly pruning option is selected. I was hoping to use pruning to help increase security and reduce program size. As before I tried adding Microsoft.Office.Interop.Visio to the exclusion list for this option, but in this case it made no difference.

Two questions:
1. How secure are programs that are obfuscated without the pruning option?
2. Do you have a whitepaper or any other documentation that describes the various options, the implications of using them or not, and any common problems when using SmartAssembly. At present I'm having to randomly try various options which is a little time consuming and tedious.

Many thanks
Roger
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Tue Aug 03, 2010 6:13 pm    Post subject: Re: Another Visio programming problem Reply with quote

Hi Roger,

1. I'm not entirely sure how best to measure that, as it depends on what level of obfuscation you apply. I think the best thing I can do is give you an idea of what code should look like before and after obfuscation. it's detailed here: http://www.red-gate.com/supportcenter/Content.aspx?p=SmartAssembly&c=SmartAssembly/help/5.0/SA_ObfuscatingCode.htm&toc=SmartAssembly/help/5.0/toc1032210.htm

2. There is a fair amount of information here: http://www.red-gate.com/supportcenter/Product.aspx?p=SmartAssembly in the "learning SmartAssembly -> using SmartAssembly section near the bottom of the page
Back to top
View user's profile Send private message
Roger Billsdon



Joined: 31 Jul 2010
Posts: 9
Location: Cambs, UK

PostPosted: Wed Aug 04, 2010 6:37 pm    Post subject: Reply with quote

Hi Nick

Many thanks, but I'd already read through those.

Because all the SmartAssembly help topics are all marked "Help content is still under construction" I thought maybe you might have some additional content (even if it's only in draft form) that was a little more specific to the pruning or interop problems I'm hitting?

Best regards
Roger
Back to top
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Fri Aug 06, 2010 12:33 am    Post subject: Reply with quote

With regard to 1) - depending on your coding style pruning is mostly a code optimization process rather than a security process.
The main times it will increase security is when you have code with testing hooks, future/obsolete functionality. However it will always improve security of metadata only elements like properties and events (which only exist as metadata and are only there as pointers to the underlying get/set/add/remove methods).

Have you excluded the event sink itself from pruning?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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