Message 1 of 2
Maya QString fromStdString
Not applicable
12-19-2016
10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi so I am using QString from maya, and I am having this issue that if I call the function: QString::fromStdString(...) it causes some access violation crash:
- "Attempted to write to protected memory"
However, if I call the function QString::fromAscii(...) it does not crash.
Example of crash:
QString test = QString::fromStdString("test");
Example non crash:
QString test = QString::fromAscii("test");
Anyone have any ideas why?