Re: string > 16 characters

"Alexander J. Oss" <[email protected]> Thu, 26 Dec 2002 12:58:52 -0500
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <005201c2ad08$73cf3c20$0101a8c0@puter>
I'm sorry if this is a silly question, but I don't see a dbgheap.c in the
cgicc library...

----- Original Message -----
From: "Vitaliy" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 25, 2002 3:57 PM
Subject: [help-cgicc] string > 16 characters


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]




_______________________________________________
help-cgicc mailing list
[email protected]
http://mail.gnu.org/mailman/listinfo/help-cgicc