patents

Correct me if I'm wrong, but if an algorithm is patented, and you develop an application that uses it, you can be sued for infringement, even if you never sell that application to anyone else.