This is probably my own doing, but I have some problems using Bentley::WString in a tool. The VS2005 project settings have the character set as "unicode", and I'm using version 8.11.9.459 with it's associated SDK. In the header file, I define two WString variables:
WString m_cellname0;
WString m_cellname180;
I call a function ( BuildMasterAssmbly(EditElemHandleR eeh, WString cellname1, WString cellname2 ) ) , passing in the three parameters. In that function, I "save" the 2 WStrings passed in:
m_cellname0 = cellname1;
m_cellname180 = cellname2;
The problems *seems* to be that after repeated calls to BuildMasterAssembly(), MicroStation aborts, and looking at the log, it appears as if attempting to perform the second assignment (m_cellname180=cellname2;) that a memory access violation occurs, with a long entry that points to MSVCR80!memcpy attempt.
I'm also fairly certain the problem is of my own doing. Is it improper to perform the assignment that way I am?
Bruce