The pages in my passport A are almost finished, so I would like to leave Thailand on passport A (which I used when arriving) and enter another country (not any of my home countries) on passport B.
Is there a problem if I apply for a visa in Thailand with passport B, exit with passport A, and arrive in my next destination with passport B?