CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2
  • Faltering Windows support
  • Internet Explorer 8 Click Clever Click Safe
  • Release Candidate 2 for ASP.NET MVC 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++.

     
     
    Thread Tools Search this Thread Rate Thread Display Modes
    Prev Previous Post   Next Post Next
      #1    
    Old January 15th, 2004, 02:17 PM
    guiemjulia guiemjulia is offline
    Member
     
    Join Date: Oct 2003
    Posts: 34
    guiemjulia is an unknown quantity at this point (<10)
    Memory problem in C

    Hi:

    I'm trying to do this:

    -A C program write the memory pointer to one of its structures in a file (ex: 00278F92). And after that, he waits in execution.

    -Another C Program begins its execution, open the file, catch 00278F92, and use it to point the structure (which is defined too in this second program of course). Then it begin to search in this structure, but it fails. At one moment i see that he's pointing to FFFFFFFF.

    If I write exactly the same code in the first program, something like this

    newstruct=0x00278F92;
    search(newstruct);

    It works fine! So I think this is a problem with shared memory or similar, the first program don't let the second to see "its" memory.

    Anybody knows how to work like this? What to doing?

    Thanks. A lot of thanks!
    Reply With Quote
     

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 12:07 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.