Welcome to the forum! Please read
this topic to learn how to post code in code or highlight tags and other useful info for new members.
I don't see how there's much we can do to help you without seeing some code. We won't be able to duplicate your error, but there may be some here with experience using the RS232 library you're using who can spot errors in the code or apply their own experiences to give you possible solutions to explore.
Provide more relevant details about what you're doing and how you're doing it.