"#100" must be replaced with a global String with 100 chars. Otherwise it could not be assigned to TestStr. Of course the string created is global, as you can't have local engine objects. But that does not play a role for the code here. Of course the local variable is valid. You can also have local bitmap or sound pointers. That does not make the corresponding engine objects local.


Always learn from history, to be sure you make the same mistakes again...