hello all
I am getting an failed assertion when using the _tcscat_s function.

Expression : (L"String is not null terminated" && 0)
file : _tcscat_s.inl
line : 32

and the assertion does not fire always, and I try to figure out why but without any success


how can i fix this? what could be the problem
thanks

Can you post some code where you are using the _tcscat_s function?

Run the code in the debugger, and catch one to examine it in more detail.

Possible causes
- the string you're copying from isn't "wide" at all, but only looks wide because of dubious casting.
- the string has no \0, because you either forgot, or didn't leave room for one.
- the string is really really long and it fails because of some "guess" by the code that it may be a runaway string.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.