473,493 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Code Obfuscation

I am binding a combo box to an arraylist with code such as

ComboBox(0).DataSource = TheArrayList
ComboBox(0).DisplayMember = "Text"
ComboBox(0).ValueMember = "Tag"
ComboBox(0).DataBindings.Add(New Binding("SelectedValue", dt, "DiscCat ID"))

Works fine on my development computer and on any other computer using the
raw exe file. However, after I obfuscate the code with the included
community edition (latest version available 1.2.1269), the above code
crashes with an error such as

"Could not bind to the new display member.
New Parameter name: newDisplayMember"

My app is shipping. To fix I either need to ship unobfuscated code or get a
fix from Preemptive Solutions for the community edition. It appears to be
impossible to get tech support - I can't even figure out how to report the
problem to them. I guess you have to buy the professional edition to get
support, but as far as I can tell, it probably doesn't work either.

I suspect the problem has something to do with the late binding I am trying
to do. Any suggestions on how to work around the problem or get Preemptive's
attention to tell them their product doesn't work.

Thanks
Russ Stevens
Nov 20 '05 #1
3 3684
Russ,

You are hitting the wall that all current obfuscators
share in common - in theory obfusactors can not guarantee
runtime integrity. So you have to do manual configuration.

Find that type of TheArrayList element, and then preserve
those two properties: "Text", "Tag"

These two members must not be obfuscated, otherwise the
obfuscated code won't run. Different obfuscators have
different mechanism to preserve symbols.

I am the author of the salamander .NET obfuscator,

http://www.remotesoft.com/salamander/obfuscator.html
(free eval download is available, no registration, no exp
date)

and I fully believe the current way of doing obfuscation
is not right, it is way too time-consuming.

Hope this is useful,

Huihong
-----Original Message-----
I am binding a combo box to an arraylist with code such as
ComboBox(0).DataSource = TheArrayList
ComboBox(0).DisplayMember = "Text"
ComboBox(0).ValueMember = "Tag"
ComboBox(0).DataBindings.Add(New Binding ("SelectedValue", dt, "DiscCat ID"))
Works fine on my development computer and on any other computer using theraw exe file. However, after I obfuscate the code with the includedcommunity edition (latest version available 1.2.1269), the above codecrashes with an error such as

"Could not bind to the new display member.
New Parameter name: newDisplayMember"

My app is shipping. To fix I either need to ship unobfuscated code or get afix from Preemptive Solutions for the community edition. It appears to beimpossible to get tech support - I can't even figure out how to report theproblem to them. I guess you have to buy the professional edition to getsupport, but as far as I can tell, it probably doesn't work either.
I suspect the problem has something to do with the late binding I am tryingto do. Any suggestions on how to work around the problem or get Preemptive'sattention to tell them their product doesn't work.

Thanks
Russ Stevens
.

Nov 20 '05 #2
Huihong,

Thank you for the feedback - I can probably find a way to fix this one
error - what scares me is how many more there may be that I am not even
aware of.

Thanks
Russ Stevens
Nov 20 '05 #3
Russ,

I forgot one thing, you will have to also preserve the
type of those properties from obfuscation.

You can take a look of my documentation on some runtime
problems,

http://www.remotesoft.com/salamander...tor/manual/ind
ex.html#advanced_topics

You are 100% right, .NET uses lots of reflections
implicitly, e.g., data binding, serialization, remoting,
etc. Even this simple API: Application.ProductName
requires complicated configuration.

When this level of configuration is used, the UI needs to
be very easy to use, and source level debugging should be
available once exception is thrown. Our obfuscator
supports souce level debugging, e.g., the line # info is
not changed when the obfuscated image is used for
debugging, varibles can be watched, etc.

Huihong

-----Original Message-----
Huihong,

Thank you for the feedback - I can probably find a way to fix this oneerror - what scares me is how many more there may be that I am not evenaware of.

Thanks
Russ Stevens
.

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2059
by: Aaron | last post by:
How would code obfuscation affect performance? in .net C#
11
4090
by: Matt | last post by:
I have object/machine code in static library (written and compiled using C++) that I wish to make difficult to reverse-engineer. I am told by others that some could reverse-engineer this...
15
3358
by: Enzo | last post by:
Hi Ng, It's possible to protect the source code of a js file? With PHP? Thanks in advance! Enzo
159
13266
by: petantik | last post by:
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection...
192
9297
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
13
2092
by: vincent | last post by:
I made the suggestion "Need built in obfuscation support in C# compiler" to Microsoft. Anyone here agree with me? If yes, please cast your vote on this suggestion to raise its priority.
4
7486
by: Bry | last post by:
I'm trying Obfuscation for the first time using the community edition of dotfuscator that ships with vs .net 2005. After building my code, I load the compiled .exe into dotfuscator and let it...
10
2177
by: John T. | last post by:
Hi all Figure this scenario: - My Company develops an assembly (a controls DLL) - Since an obfuscation software is too expensive, my Company engages a consultant and delegates him the...
7
16797
by: howa | last post by:
if speed, size is not a matter, i just want to protect the code as much as possible, any library or tools do you think is the best solution right now? i know there is not a perfect solution, but...
16
4555
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I protect my javascript code? ----------------------------------------------------------------------- ...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.