Might want to read this recent USSC case about a state and judge which prevented a defendant from presenting a viable defense in his criminal trial.
http://caselaw.lp.findlaw.com/cgi-bin/getcase.pl?court=US&navby=case&vol=000&invol=04-1327
That's why we have an appeal process.