Forum Discussion

newsgroups's avatar
newsgroups
Occasional Contributor
11 years ago

How do I find out what is unsafe about my code?

Performance profiler, C++ Builder XE4 GUI app.



The Uninstrumented Routines identify several of my selected routines as "Unsafe code". The help file suggests this might be caused by using string literals in parameters to VCL function calls, or in any assignments.



Am I to understand that I must assign string literals to AnsiString instances and use those to assign the values to anything VCL? That would really clutter the code something awful.



I'll stop speculating... somebody please help me to understand!



Thanks,

Kathleen