title: vs2015 coco2d-x 3.8 error reading characters of string
body: <p>please see below code: I don't know why this is happenning</p>
  
  <pre><code>bool AppDelegate::applicationDidFinishLaunching() {
  // initialize director
      auto director = Director::getInstance();
      auto glview = director-&gt;getOpenGLView();
      if (!glview) { 
          **glview = GLViewImpl::createWithRect("NewCocosProject", Rect(0, 0, 960, 640));**
          director-&gt;setOpenGLView(glview);
      }
  }
  
  bool GLViewImpl::initWithRect(const std::string&amp; viewName, Rect rect, float frameZoomFactor)
  {
      setViewName(viewName);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vJK01.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vJK01.png" alt="below is screenshot"></a></p>
  
  <p>if I continue, I'll get this error:
  <a href="https://i.stack.imgur.com/awpEU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/awpEU.png" alt="enter image description here"></a></p>
  
  <p>could anyone help?</p>