Best Practices for Cross-Process Communication

Add-in Express™ Support Service
That's what is more important than anything else

Best Practices for Cross-Process Communication
 
Mark Williams


Guest


So as we all know IE creates a new process for each tab (most of the time). Messaging with simple integers is an easy way to send signals from add ons in one process to add ons in another process. But what about data?

The addon I am developing stores a decent amount of data in several fields that is then submitted to the server. What is the best way to pass this data from one process to another?

I have looked into shared memory but that means using unsafe code, which can create a myriad of problems.

Writing to a file in a protected-mode compatible directory is also an option but that is slow.

Any advice here? All the data is inside one class so I can serialize it, etc.
Posted 22 Oct, 2010 10:44:45 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Posted 22 Oct, 2010 12:36:42 Top
Mark Williams


Guest


Excellent news. How does one run the ADX IE Shared Data wizard? I can't find it. I am on VS 2010 with a .NET 3.5 project in C#.
Posted 22 Oct, 2010 13:03:53 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hi Mark,

- Right-click your porject, choose Add | New Item... in the context menu.
- In the Installed Templates pane, expand Add-in Express Items and click the node called Internet Explorer.
- Finally, select ADX IE Shared Data in the right pane and click OK.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Oct, 2010 08:42:53 Top