Print out $view object in custom field template
Try to set the memory limit in your settings.php to something like this..

ini_set('memory_limit', '128M'); 


The above code will override your server php.ini settings. Take note that this may result instability of server and may attract suspension of your account. 

You may need to ask your hosting support if possible.