Unsolved Error : Unable to open I2C device. Too many open files
I have interfaced Real Time Clock module through I2C data transfer protocol and I am calling this function in every 1 second.
Task - In addition I have interfaced modem with my hardware as well. I am downloading data through Modem and storing them locally in txt files.
Problem Statement : After downloading 15 -16 files one by one, the programme suddenly stops with the error message -
Error : Unable to open I2C device. Too many open files
I checked all my files they are already closed
Are you closing all the files that you are opening in your application ?
yes I have duly closed all my files and I have also cross checked it using file.handle() command
has handle is not a function of QFile, are you actually doing this with Qt ?
ups, it's part of QfileDevice, my bad
can you show us code?
@j-hilk which portion of code shall I Share?
I'd say the code related to I2C.
Do you have any other processes that are consuming files on your target ?