Skip navigation.
 
mlRe: Does this caution need fixed? (newb)
FROM : Jason Stephenson
DATE : Fri Jul 04 02:22:10 2008

Chris Paveglio wrote:
> Thanks all for your help and insight! I believe Jason's solution will
> work for me as I am changing the assignment of what "theSetting" is
> each time through the loop. I have a list (array) of files that gets
> copied from one place to the other, and I change the origin and the
> destination each time in the loop. Also Michael I understand now what
> you are saying about the assignment. Thank you for putting it in a
> nice detailed explanation! :-)


Just keep in mind that you'll be leaking memory with my example if you
use it as written. I'm assuming that you'll do something with the string
inside the loop. After doing whatever it is you do with it, you'll need
to release theSettings. Making a mutable copy does allocate memory for
the copy.

Related mailsAuthorDate
mlDoes this caution need fixed? (newb) Chris Paveglio Jul 3, 18:40
mlRe: Does this caution need fixed? (newb) Andy Lee Jul 3, 19:35
mlRe: Does this caution need fixed? (newb) Kyle Sluder Jul 3, 19:47
mlRe: Does this caution need fixed? (newb) Chris Paveglio Jul 3, 20:57
mlRe: Does this caution need fixed? (newb) Sherm Pendley Jul 3, 21:08
mlRe: Does this caution need fixed? (newb) Jason Stephenson Jul 3, 21:22
mlRe: Does this caution need fixed? (newb) Michael Watson Jul 3, 21:29
mlRe: Does this caution need fixed? (newb) Andy Lee Jul 3, 21:43
mlRe: Does this caution need fixed? (newb) Chris Paveglio Jul 3, 22:09
mlRe: Does this caution need fixed? (newb) Steve Christensen Jul 3, 22:46
mlRe: Does this caution need fixed? (newb) Steve Christensen Jul 3, 22:53
mlRe: Does this caution need fixed? (newb) Sean McBride Jul 3, 23:04
mlRe: Does this caution need fixed? (newb) Jason Stephenson Jul 4, 02:22
mlRe: Does this caution need fixed? (newb) Chris Paveglio Jul 9, 16:44
mlRe: Does this caution need fixed? (newb) Jens Alfke Jul 9, 17:27
mlRe: Does this caution need fixed? (newb) Brian Stern Jul 9, 21:39