Red Gate forums :: View topic - Error connecting to a Named Pipe after obfuscation
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

Error connecting to a Named Pipe after obfuscation

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
Avital Chissick



Joined: 24 Jan 2011
Posts: 1

PostPosted: Mon Jan 24, 2011 10:28 am    Post subject: Error connecting to a Named Pipe after obfuscation Reply with quote

Hi,

I'm a C# developer, and working on an application, in which the user uses an Outlook macro to send information to the application.
The communication is done via named pipes.

The general design is:
* The C# application defines a named pipes server.
* Outlook (version 2010) has a macro that defines a named pipes client that connect to the server defined in the C# application.

This design works very well when the application is no obfuscated.

After SmartAssembly is used, the application is obfuscated,
the named pipes client in defined by the Outlook macro,
cannot connect to the named pipe server defined in the running obfuscated application.

I did a small test and tried to use a named pipes client from C# project and it works well and can send messages to the server.

When debugging the outlook macro, the code for creating the named pipes client, returns an error 233 ERROR_PIPE_NOT_CONNECTED

The code in the the macro is taken from this article
http://support.microsoft.com/kb/177696

If necessary I can provide sample code for the C# side.

I would appreciate any help regarding this matter,
Thank you.
Back to top
View user's profile Send private message
ShortAngry



Joined: 02 Dec 2010
Posts: 14

PostPosted: Tue Jan 25, 2011 11:08 am    Post subject: Reply with quote

It would probably be best if you either post the sample you have or send it directly to support@red-gate.com Smile
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6582

PostPosted: Tue Jan 25, 2011 5:38 pm    Post subject: Reply with quote

Hi,

I concur. The pipe reading/writing code you mention is mostly unmanaged PInvoked code so SmartAssembly should not interfere. SmartAssembly is probably messing up the data you want to send somehow because of interference with reflection/serialization.

If you want to send the example demonstrating the problem, please put F0043683 in the subject line and mail it to support at red-gate.com.
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