For Programmers: Free Programming Magazines  


Home > Archive > VC STL > February 2006 > help - weird string size limit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help - weird string size limit
Ron Hall

2006-02-26, 7:57 am

This is a strange one, I am using a string in VC 6 and I am simply
successively appending to it. The string is defined as a local variable (on
stack) but I've also tried it as a class variable with the same results. As
I build the string once the size gets to 255 characters I hit a limit and
cannot add anymore to the string. I've taken the code snippet and built it
outside of the application and it works just fine so I'm assuming that some
include file or interaction between includes (the app is mostly c++ but also
includes some of the vanila c headers) is causing my problem. Has anyone
seen this or can someone shed some light on this one?

TIA
Ron


Carl Daniel [VC++ MVP]

2006-02-26, 7:07 pm

Ron Hall wrote:
> This is a strange one, I am using a string in VC 6 and I am simply
> successively appending to it. The string is defined as a local
> variable (on stack) but I've also tried it as a class variable with
> the same results. As I build the string once the size gets to 255
> characters I hit a limit and cannot add anymore to the string. I've
> taken the code snippet and built it outside of the application and it
> works just fine so I'm assuming that some include file or interaction
> between includes (the app is mostly c++ but also includes some of the
> vanila c headers) is causing my problem. Has anyone seen this or can
> someone shed some light on this one?


Please show some code.

-cd


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com