Diagnostics
- What is pCellname? As an argument we know it's a char*, but what does it point to?
- If you remove the call to attach the cell library, do you get the same result?
- Is this a Debug or Release build? Your other post about WString informs that question.
Alternative
You're writing C++, so use it!
std::string l_cellname;
l_cellname = pCellName;
printf ("(1) pCellname [%s], l_cellname=%s\n",
pCellname, l_cellname.c_str () );
Since model and cell names in V8 are always Unicode strings, you would be better off using std::wstring. And then it's only a short step to use WString.
Regards, Jon Summers
LA Solutions