Rhino.Display.RhinoView Problem


I made as mall script to save the capture of the named views. Yesterday i got it working but now the images arent saved anymore. i suspect it is because the line 81, that rhino isnt finding the view anymore.
Maybe someone can help me with this?it is annoying me cause it worked and now i dondt know why i changed a line or something and nothing is happening anymore.

captureView_Foro_size.gh (5.7 KB)
Thread here:http://www.grasshopper3d.com/forum/topics/capturetobitmap-of-named-views-in-c

Looks like this has been well replied to on the Grasshopper community site.