Starting with MonoTouch 5.4 it is possible to use Valgrind on a MonoTouch project. In some cases Valgrind is invaluable in finding strange crashes, in particular when freed memory is accessed.
This is what you need to do:
Download latest Valgrind (3.7.0 as of this writing). Extract somewhere, and compile:
./configure --enable-only32bit --prefix=/usr/local
make
sudo make install
Now open the project you want to valgrind, and set the VALGRIND environment variable to the command to execute to use valgrind:

Run (not debug) your project. You will see this in the Application Output:

Read more: To Infinity and Beyond
QR: 
0 comments:
Post a Comment