Dont Move String Data

Accessing string data at a low level, for example with a Move call, was not a very good idea in the past, as it could defeat reference counting and cause memory overruns and other problems. Calling Move for characters is even worse now that we have multiple string representations that are incompatible at the binary level.

As an example, consider the following code (from the MoveStrings demo) that moves data from a string to a buffer and then back to another string:

procedure TFormMoveStrings.btnMoveFailureClick( Sender: TObject);

53 More information about the new Project Options dialog box and various settings in Chapter 4, in the section "Project Options Dialog Redesigned".

Was this article helpful?

0 0
Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook

Post a comment