SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get memory content of member inside an object

    For example, how to get the content of the memory of a Calculator object?
    Jaimini Bhatt

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    It seems you should be able to do this through the Windows API, but I can't track it down. I see a lot you can do with memory, but nothing that says specifically how much a particular app is using.

    You can get this data off the processes tab in the NT Task Manager, and Silk can see that application. It sees the processes as being a in ListView. That's not a great way to go after the information, but it is a workaround. The very fact that the information is there tells me that is a way to get to what you want programmatically. Sorry I don't have a specific answer.

    Maybe some of the other code Ninjas here know how to get what you want.

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Actually the question was posed by someone who wanted to know whether I was good enough or not (sic!).

    The way I feel the issue could be tackled is by knowing which member variable holds the calculator's memory. And once I know the member variable, after loading the calculator, using a pointer to that variable, dump its content in another variable to be used later. But, how to accomplishes me, -- I must have numb regions in my otherwise sharp and volatile brain...

    And yes I am waiting for the Ninjas to respond.
    Jaimini Bhatt

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Press its MR button ?


    John

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Ha! Ha! Ha! ... I never thought it. Just do the
    Calculator.mr.click() and then getText the dump...

    Is there any other way?

    [ 05-29-2003, 02:52 PM: Message edited by: jaiminita ]
    Jaimini Bhatt

  6. #6
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    OHHHH, I completely misunderstood what you were asking. DUH!!! My bad. I was reading the question as though it were asking how much of the systems memory resources were being used. You want to know what is being held in that memory.

    Man, sometimes I read through this forum at warp speed and completely miss the heart of the question.

  7. #7
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Originally posted by DJGray:
    OHHHH, I completely misunderstood what you were asking...
    <font size="2" face="Verdana, Arial, Helvetica">I was thinking exactly the same way - along the lines of memory utilization. While I can easily see how you can obtain memory at a container level, I was stumped about how it might be done for a specific object. What triggered considering a wider viewpoint was the "good enough or not" comment.

    [img]images/icons/smile.gif[/img]

    John

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Location
    Hartford, CT, USA
    Posts
    163
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Now I have the satisfaction of spreading my confusion. [img]images/icons/wink.gif[/img]

    So, to see through the opaque:
    1. He have an object - with various members as its instance.
    2. One of the member contains information.
    3. How do we make it dump?

    And the easy solution was(and is so far) was to execute the object itself to dump the memory. Yes. But what if we don't have the memory button?

    In C++ it become easy. So the question changes into, can we use pointers in Silk too? How?
    Jaimini Bhatt

  9. #9
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    Silk does not support pointers like C++. It does however support DLL calls. You may be able to get to the information you need it that manner. Take a look at the online help text for details on how to do it.


    John

  10. #10
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to get memory content of member inside an object

    If I am understanding you correctly.
    there is an exe which has an object which has a datamember and its running. you are trying to access that datamember value from out side from another process, right?

    If you are trying to access data member from out side of the process.
    the data members will have to be in the shared memory and you need to know the name(memory location) then you will have to write some code in c++ or other language to read that memory location and then bring it back in silk some how.

    If you don't know the memory location then you will have to write a program using dll injection which is little non trivial and then get the info and then bring it back to silk.

    But if there is an agreement between two application why do you need to go thru all these hoops just ask the application to expose that member variable to the outside world make it public. or write a function to access it.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:34 PM.

Copyright BetaSoft Inc.