title: Using more than two wide characters in swprintf causes a crash?
body: <p>The following piece of code causes a crash</p>
  
  <p>"Unhandled exception at 0x01C006AB in ASMaplePro.exe: 0xC0000005: Access violation reading location 0x003A0043"</p>
  
  <pre><code>TCHAR text[512]={0},text2[256]={0};
  char text1[128]={0};   
  strcpy(text1,_T("how are you");
  wcscpy(text2,_T(" Bob?"));
  swprintf(text,_T("%s\\%s"),(CA2W)text1,text2); 
  </code></pre>
  
  <p>I suspect its because I'm using both 'text' and 'list' which are taken as wide character buffers in one go!</p>
  
  <p>But can someone tell me why exactly the crash is caused.</p>