473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Event handling between process.

Hi all,

I want to do inter process communication in c#.

I am having one application and one dll. What i want is load that dll
at runtime. After loading that dll i want to send one event from
application which should get trapped in dll. And only after dll has
completed that event i want my application to continue with next code.
Here i also want to use shared memory between application and process.

I am new to inter process communication. If i am wrong please correct
me.

thanks in advance.

Jan 30 '07 #1
4 2766
Hi,

Have you considered .NET Remoting yet?

Brian

On Jan 30, 7:49 am, "archana" <trialproduct2...@yahoo.comwrote:
Hi all,

I want to do inter process communication in c#.

I am having one application and one dll. What i want is load that dll
at runtime. After loading that dll i want to send one event from
application which should get trapped in dll. And only after dll has
completed that event i want my application to continue with next code.
Here i also want to use shared memory between application and process.

I am new to inter process communication. If i am wrong please correct
me.

thanks in advance.
Jan 30 '07 #2
"archana" <tr**************@yahoo.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Hi all,

I want to do inter process communication in c#.

I am having one application and one dll. What i want is load that dll
at runtime. After loading that dll i want to send one event from
application which should get trapped in dll. And only after dll has
completed that event i want my application to continue with next code.
Here i also want to use shared memory between application and process.

I am new to inter process communication. If i am wrong please correct
me.

thanks in advance.

It's not entirely clear what you are after, a dll once loaded in a process becomes an
integral part of it, that is, dll's are no stand-alone run-time entities and they are no
means for inter-process communication.
Inter process communication is about interaction between two or more processes, these
processes can use a number of available low-level technologies like sockets , named pipes,
shared memory, RPC's, DCOM etc. as an interprocess communication path. .NET wraps most of
these technologies in the System.Remoting (V2) and WCF (V3) namespace classes.

Willy.

Jan 30 '07 #3
Hi

thanks for your rply.

Yes i read about .net remoting but i don't want client and server
concept. as my both application and dll will be on same pc.

so can i do this without remoting.

thanks in advance,

Jan 31 '07 #4
"archana" <tr**************@yahoo.comwrote in message
news:11**********************@j27g2000cwj.googlegr oups.com...
Hi

thanks for your rply.

Yes i read about .net remoting but i don't want client and server
concept. as my both application and dll will be on same pc.

so can i do this without remoting.
No, you can't without any form of inter-process channel (sockets, pipes, shared
memory.....). As I said in another reply, a dll becomes a part of the application code and
data, both processes get their private view mapped in their own process space.
What you need is a way to call functions across process boundaries (what you call event
handling), and this is exactly what Remoting is about.

Willy.


Jan 31 '07 #5

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

Similar topics

8
by: Mark | last post by:
Hi, I'm looking for some ideas on how to build a very simple Event processing framework in my C++ app. Here is a quick background ... I'm building a multithreaded app in C++ (on Linux) that...
21
by: Alo Sarv | last post by:
Hi From what I have understood from various posts in this newsgroup, writing event loops pretty much comes down to this: while (true) { handleEvents(); sleep(1); // or _sleep() or...
4
by: rawCoder | last post by:
Hi all, How Can You Raise Events Asynchronously ? Now for the details ... I want to do inter modular communication using events in such a way that the contributing modules need not...
15
by: Amit D.Shinde | last post by:
I am adding a new picturebox control at runtime on the form How can i create click event handler for this control Amit Shinde
4
by: Nick | last post by:
Hi there, I'm running a process object within a .NET app, very simple, the process is declared with events, i'm handling the Exit event and running a win32 application. No matter how the...
1
by: EricRybarczyk | last post by:
I am starting a rewrite of an existing Classic ASP web site in ASP.NET 2.0. The existing ASP application has several types of users, each with a separate login process (separate login page,...
3
by: msch-prv | last post by:
I am fairly new to PHP. I started creating a variety of classes (calendars, input forms, combo boxes, etc. ) but I am running into code overhead when I integrate these objects (testing for POST,...
8
by: Roger | last post by:
When I call the session.abandon() method, it calls the session_end event. When a user closes the browser or clicks the log off button, I can dispose of objects and abandon the session cleaning....
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.