Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Problem while code integration in Visual C++ .net framework.

Problem while code integration in Visual C++ .net framework.

Scheduled Pinned Locked Moved .NET (Core and Framework)
c++helpcsharpdotnetcom
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nilesh Hamane
    wrote on last edited by
    #1

    Hi friends, there is a project which contains more than 10 small projects. These projects contains their respective exe's. Each project has some dlls to perform particular operation. Each dll is build by linking with either header1 or header2. My task is to integrate them in one project and make one exe i.e. code integration. I have almost finished it. When I run the project then it is giving error as "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" for those projects whose dlls are linked with header2 and its fine working for those projects whose dlls are linked with header1. I have linked the new project with each and every dll required for operation. No errors while compilation. But it's giving an error while performing operations. Do you have any solution for my problem?

    http://nnhamane.googlepages.com/

    N 1 Reply Last reply
    0
    • N Nilesh Hamane

      Hi friends, there is a project which contains more than 10 small projects. These projects contains their respective exe's. Each project has some dlls to perform particular operation. Each dll is build by linking with either header1 or header2. My task is to integrate them in one project and make one exe i.e. code integration. I have almost finished it. When I run the project then it is giving error as "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" for those projects whose dlls are linked with header2 and its fine working for those projects whose dlls are linked with header1. I have linked the new project with each and every dll required for operation. No errors while compilation. But it's giving an error while performing operations. Do you have any solution for my problem?

      http://nnhamane.googlepages.com/

      N Offline
      N Offline
      Nilesh Hamane
      wrote on last edited by
      #2

      I will try to explain exact problem, there are two headers i.e. header1 and header2. header2 is same as header1 with extra functions. Namespace and class names are same in header1 and header2. header1 is linked to project before header2 and it has less functions. So whenever extra function getting used that time error message is coming. Actually due to same namespace and sequence of headers first preference is to header1 and that does not contain that extra function. This should not happen actually. I can't change namespace names of headers, because I have only headers not code. If I change the sequence of linking then problem is occurring for header2, because that header also does not contain some functions. If you got my problem then please suggest me. And one more thing independent projects are working fine. If I debug the whole project then also same problem is occurring. Thank you and regards.

      http://nnhamane.googlepages.com/

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups