How to append 5000times of string in another string.?


This question is an exact duplicate of:


I am not win programmer, so I don't use this classes, but I see you wrote "sometimes it crashes". this makes me guess this is a memory issue. I would therefore try to use something like GetBufferSetLength() before starting the append, and check I did get a valid pointer. (I guess this is like reserve())

Perhaps, this line:

str1 = str1 + "\r\n";

Should be changed to:

str1 = str1 + L"\r\n";

Maybe something strange is happening with the different character widths. Otherwise, I am not sure why this program would crash.

Need Your Help

File upload using PrototypeJs method $('formId').request()

javascript file-upload prototypejs

I was trying to upload file(s) using PrototypeJs request method but I failed.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.