CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2001
    Location
    Midwest
    Posts
    57

    A tough one - program memory overrun

    Hello,

    We suspect that our application is being overrun/overwritten by another that is concurrently running on our system.

    Is there any way to report the memory state/table of all applications on our system, so that we can see if something is crossing our memory borders?

    Thanks for your help in advance.
    "Judge a man by his questions rather than his answers." - Voltaire

  2. #2
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443
    What OS does your app run under? If it is Win32, every process runs in its own address space, so what you say is not directly possible. (It is possible by calling things like WriteProcessMemory(), but that cannot happen by mistake).
    Gabriel, CodeGuru moderator

    Forever trusting who we are
    And nothing else matters
    - Metallica

    Learn about the advantages of std::vector.

  3. #3
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647
    What system do U mean?
    Every modern OS's of common usage has a own process adress space for every process. It cannot be overwritten by other process like it was for early Win versions (win 3.1, + partly 9x).
    Of course, If U mean that some process has rights to use API like ReadProcessMemory, WriteProcessMemory (for Win), it can do any things U donot wait for.
    So give a more concrete question with more describtions...
    "UNIX is simple; it just takes a genius to understand its simplicity!"

  4. #4
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128
    Similar to calling WriteProcessMemory, if the two programs intercommunicates using any form of RPC, there is a chance that buffer allocated at the server is being overruned by data from the client.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured