473,704 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Triggering event on change in process memory?

I'm using ReadProcessMemo ry from kernel32.dll to read specific bytes
from the process memory of a program. While the solution I have now
(which updates the memory content at regular intervals) works, I can
help thinking that it's a waste of resources. It also possible to miss
changes if the interval is set too long.

I'm a newbie when it comes to eventhandlers, and I guess I could
benefit from learning-by-doing on somewhat less complex examples, but I
thought I'd ask if this is the way to go in my situation, lest I waste
my time. Also, some pointers would be greatly appreciated! :)

Regards,
Mike

Dec 5 '05 #1
2 1809
Mike,

I don't know if there is anything that would let you do this... And if
so, doing so is really not a solid way of determining whether or not there
are changes in a program.

Is there any way that you can get an event to fire when what you are
looking at changes? It's a much better way of handling this.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"anguish" <an*****@tjohoo .se> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
I'm using ReadProcessMemo ry from kernel32.dll to read specific bytes
from the process memory of a program. While the solution I have now
(which updates the memory content at regular intervals) works, I can
help thinking that it's a waste of resources. It also possible to miss
changes if the interval is set too long.

I'm a newbie when it comes to eventhandlers, and I guess I could
benefit from learning-by-doing on somewhat less complex examples, but I
thought I'd ask if this is the way to go in my situation, lest I waste
my time. Also, some pointers would be greatly appreciated! :)

Regards,
Mike

Dec 5 '05 #2

"anguish" <an*****@tjohoo .se> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
I'm using ReadProcessMemo ry from kernel32.dll to read specific bytes
from the process memory of a program. While the solution I have now
(which updates the memory content at regular intervals) works, I can
help thinking that it's a waste of resources. It also possible to miss
changes if the interval is set too long.

I'm a newbie when it comes to eventhandlers, and I guess I could
benefit from learning-by-doing on somewhat less complex examples, but I
thought I'd ask if this is the way to go in my situation, lest I waste
my time. Also, some pointers would be greatly appreciated! :)

Regards,
Mike


We need some more context about what you are trying to achieve, and why you
are using low level debugging API's from managed code.
But supposing you are reading another process memory, then the other process
must signal an event when writing is done, for instance by means of a
semaphore. The reading process could wait on the semaphore to get signaled.

Willy.

Dec 5 '05 #3

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

Similar topics

2
8207
by: T | last post by:
How do you catch the "Exited" event when a process is terminated. In the following code sample the "myProcess_Exited" event is never called. Any help would be appreciated. using System; using System.Diagnostics; using System.Threading; class ConsoleProcessApp { public static void Main()
13
31423
by: aundro | last post by:
Hello, I've been looking on the web for a solution to this problem: I create a set of checkboxes, and 2 buttons: - one is labeled "All" - the other is labeled "None" Clicking "All" is supposed to check all the checkboxes, which it does (that's not rocket science ;), but the 'onchange' event does not get triggered.
1
3901
by: Wavemaker | last post by:
I was wondering if there is a way to change the value of a control without triggering an event. The ComboBox control, for example, will trigger the SelectedIndexChanged event when its SelectedIndex property is changed. I would like to change the SelectedIndex property without triggering an event. The reason I ask is that in the application I'm writing, I have many controls that manipulate the program data. The data is encapsulated into...
3
1361
by: John | last post by:
Hi On my webform, in design mode when I double click on the button component, it creates a click sub for me. But when I add code to the click event and run the web form the code does not seem to be executed. I have verified this by setting break points. Why would clicking the button not execute the click sub in this case? Thanks
8
2351
by: Steve Schroeder | last post by:
For some reason I cannot get the OnSelectedIndexChanged event to fire for a listbox I have on a page. I'm able to populate the listbox with data from a stored procedure, but cannot trigger the event. I do have EnableViewState = True for the listbox. I'm imagining (wanting) to populate the listbox named: lstNames by using the DataValueField from lstDepartments. It's quite apparent though that the event is not triggering as I can misname...
6
5730
by: André | last post by:
Hi, I’m using win server 2003 and IIS 6.0, C# 1.1 When I check in my Event View under system, I see this Information Log: A worker process with process id of 'xxx' serving application pool ‘xxx’ has requested a recycle because the worker process reached its allowed processing time limit. Source: W3SVC Event: 1074
2
3921
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 well, so at times it is tempting just to port parts of it over mostly as-is. In fact, one MSDN article I read suggested using straight HTML wherever possible to make the app more efficient and less resource demanding. On one page there are 2...
1
1530
by: raddrummer | last post by:
OK this is a total newbie question but.....I have a field in a subform that I want to use to trigger an event on change(). I'm debugging and am trying to get a message box to fire on change (just to try and isolate why the change isn't triggering the event). I created the sub below and placed it in the general declarations area. Public Sub Hello() MsgBox "hello" End Sub In the on change() event of the text box I placed a the...
0
8766
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9271
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9134
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6604
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5930
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4699
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3134
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 we have to send another system
2
2478
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.