I'm sorry you're going through such a hard time. But don't you think that killing yourself will only make matters worse for the people who love you? No matter how hurt they are because of your actions, killing yourself will only cause people more pain. They will eventually get over what you did, but killing yourself is permanent and is only a way of escaping the pain and guilt you are feeling and will not make life any better for those around you. On the contrary, it will be much, much worse. Don't follow up a selfish act (the affair) by another selfish act (your suicide). It will take some time to work through this, but it will be worth it both for you and for those around you. If you really care about these people, you will not take your own life, instead, you will do your best to make amends and move on.