string > 16 characters
Vitaliy <[email protected]> Wed, 25 Dec 2002 22:57:36 +0200
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
here is my code:
{
const_form_iterator sValue = cgi.getElement("sValue");
if (...)
{
string str = **sValue;
...
}
}
here is the problem:
everything works correct, but if string value > 16 characters
next assert fails (dbgheap.c):
/*
* If this ASSERT fails, a bad pointer has been passed in. It may be
* totally bogus, or it may have been allocated from another heap.
* The pointer MUST come from the 'local' heap.
*/
_ASSERTE(_CrtIsValidHeapPointer(pUserData));
what I did wrong, and what should I do?
N.B. all strings < 16 characters works good!
--
Best regards,
Vitaliy mailto:[email protected]