Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Copying vector fail in debug. Works fine in Release

$
0
0

I have two projects

  1. ProjectA
  2. ProjectB

I have a function in project B

void ProjectB::getData (std::vector<double>& vertexList)
{
  vertexList= mVertexList; // Code crash here in debug mode
}

When I call this getData function from ProjectA. Code crash while assigning the vector.

It works fine in Release mode, but fails in Debug mode.

Platform Toolset used for both projects is v100



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>