On 2006-12-13, at 18:25, Brendan Murphy wrote:

Sven E Olsson wrote:
Just an idea and question about "Pro-Tools" to use with our RB code
to find unused variables and memory leaks..
I think we "NEED" such Tools in the daily works.

I have tested a RB script to find unused variables, ok it find a lot,
but then I found that the script NOT found...
Here is a example with 5 Unused variables, and the script says there
is NO Unused found..

http://www.seedit.info/intelerrors/unusedvariables.png

Any idea about this, "PRO-TOOLS" .. not freeware, I mean it could
cost, BUT it SHOULD WORK!

I am assuming you are talking about my unused variable IDE script.
The problem you are seeing is a design flaw in the IDE script
implementation. Specifically the "Sublocations" method does not
return all the locations in the module because it does not provide
a way to differentiate between overloaded methods. So the problem
you are seeing is that it can't get to the method. If it gets in
there, it will work perfectly.


Bug RS to fix and enhance the IDE
script interface if you want it to hit these methods.

There are a couple of feedback reports that you should sign on to
if you want third party tools to add such functionality. Feedback
report "akkbdtkt" is for a built in lint system. Feedback report
"kprrfgto" is for a plugin we can drop into our projects that will
allow us to communicate in realtime with the RB IDE instead of
using the XML format.



Hi, and apologize I forgotten your name as the developer of the script!

(1)
I checked this report, check the Evaluation .. What thats mean? The compiler already know, then it could remove unused variables or ?? http://www.realsoftware.com/feedback/viewreport.php? reportid=akkbdtkt&cmd=watch

It says that RB is written in RB, then what Tools are RS using to check such things? Ok, nobody here knows...


(2)
http://www.realsoftware.com/feedback/viewreport.php?reportid=kprrfgto
This report is over a year and NOT reviewed yet!



(3)
Bug RS to fix and enhance the IDE
script interface if you want it to hit these methods.

There is no bug-report on this?
(perhaps there is some that also is interested and with better english could explain the problem in a report, then me?)

(4) As I understand there is not any good tools to test/check memory leaks and unused variables for REALbasic?

Regards,
Sven E






_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to