all groups > visual c libraries > september 2006 >
You're in the

visual c libraries

group:

"This application has requested the Runtime to terminate it in an unusual way..."



"This application has requested the Runtime to terminate it in an unusual way..." Mike C#
9/12/2006 3:14:57 PM
visual c libraries: Hi all, I keep getting this message in a VC++ 7.1 program I've written:

This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.

The line causing the headaches appears to be:

wcscpy(data, MyCode.c_str());

The variables data and MyCode are defined as:

wchar_t data[256];
std::wstring MyCode;

In VS.NET the code appears to run without a hitch, and I can verify that the
value of MyCode is "982091".

Does anyone know what could possibly be causing this? All feedback is
appreciated.

Thanks!

Re: "This application has requested the Runtime to terminate it in an unusual way..." www.fruitfruit.com
9/27/2006 12:00:00 AM
[quoted text, click to view]
Check other codes near this line. Sometimes the cursor does not stop at
the exact failure line. Also check if you run out of stack.
Try
Re: "This application has requested the Runtime to terminate it in an unusual way..." Mike C#
9/29/2006 4:28:33 PM
[quoted text, click to view]

Hi Fruit,

I still have no idea what the problem was, but after I re-installed the
Platform SDK and installed SP 1, it just sort of went away...

Thanks!

AddThis Social Bookmark Button