Roman Yankovsky Yes, sorry I should have been clear. I meant that I hope you check for nil before issuing that warning. This code is indeed in violation regardless.
Asbjørn Heid Good point :) Unfortunately, in current release the analyzer is not able to check nil assignments before the try block. This means sometimes it produces a false positive. But this case is on my todo list, I'll fix it soon.
"W511 Object created in TRY block" I certainly hope you check for a nil assignment before the try block.
ReplyDeleteAsbjørn Heid no nil assignments before the try block in this particular case, I checked
ReplyDeleteRoman Yankovsky Yes, sorry I should have been clear. I meant that I hope you check for nil before issuing that warning. This code is indeed in violation regardless.
ReplyDeleteAsbjørn Heid Good point :) Unfortunately, in current release the analyzer is not able to check nil assignments before the try block. This means sometimes it produces a false positive. But this case is on my todo list, I'll fix it soon.
ReplyDeleteI hope soon you will have someone at Embarcadero buy a copy... Or have Embarcadero buy the entire product :)
ReplyDelete