Country of origin: Probably the U.S.
Date: Seen it 5-10 years ago on HBO with hungarian dubbing.
The protagonist is a writer, who is struggling to get his books published. He lives with his family and he tells them if he can't get published within X years, he'll kill himself.
His best friend is a cop.
Towards the end of the movie he gets a letter that informs him that a book of his is green lit.
He climbs to the top of a building and starts to throw papers from there. His family is alarmed because they think he is about to kill himself.
It's not Wilbur Wants to Kill Himself.