I am not a Canadian lawyer but Canadian bankruptcy law and practice is unlikely to be all that different from the UK, with which I am more familiar. What you should bear in mind is that bankruptcy is an expensive solution to problems of debt:the charges of insolvency practitioners (which are paid out of the assets of the bankrupt) are enormous, and the debtors assets also tend to be sold for peanuts. The bank would probably only be interested in making you bankrupt if you have assets making it worth its while to petition for bankruptcy; it would be far more interested in reaching a compromise arrangement with you and you also would be better off in entering into such an agreement. Those are the reasons why it is hardly ever a good idea to petition for one's own bankruptcy; and in your case there is also the detrimental effect it would have on your immigration application.