Critical error (not in error list)

Huhu,
when I am trying to debug/run my app I get a critical error:
http://www.abload.de/image.php?img=unbenannt13vp.jpg

Code:
http://nopaste.org/p/ari6OiwqH
(sry, german comments :/)

Any clues?

Compiler: VS 2008

€: Ok, like the error message let guess it is about the strings.

http://nopaste.org/p/aWEm5XCbeb

I commented out the whole function it did work without any problems. Then I commented out everything in the function everything except the string definitions and I got the error message again. So it is difinitivly there.
Last edited on
string ergstring = 0; //error
Yep, when I went into my kitchen to eat something it came up to my mind: A string and a variable aren't the same >_<.
So thereby I can't store such numbers in it - Just wrote it down because I was on my string rampage ;)

But big THX anyways !!
Last edited on
The 0 is being treated as a pointer unfortunately, that is why it compiles and why it crashes during
runtime.

Any other value would have been treated as an integer and it would not have compiled, because string has no function overload for the = operator that takes an integer (and it has no implicit constructor that could be used to construct a string from an integer).
Topic archived. No new replies allowed.