frustrum, perspective at runtime

How can I change perspective and frustrum at runtime? I tried it and got the “Matrix can’t be inverted” error. :-[

Thanks in advance.