Hi, I just wonder how the SetApplicationName method works (about the string given). Can someone answer me please.
The method is as follows: static void csApplicationFramework::SetApplicationName(char* name) - Why the string is not constant ? - If I call this method twice, can I discard the first string the second time ? The problem I have is that i get this string from a lua script. Lua ensure me that the string still exists until the end of the current function. So I think I need to copy the string on the heap, involving a new[] or a malloc. But then I wonder when I should free this memory (I suppose in the csApplicationFramework destructor). And because the lua script can call this function many times, I wonder if I just can discard the string that was previously allocated. Thanks. Mildred -- Mildred <xmpp:[EMAIL PROTECTED]> <http://mildred632.free.fr/> Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key> Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
