Thanks for your support: that's exacly what I did in the meantime.
The funny thing is that now the program works when compiled as an independent .exe but, when I try to compile it as a .dll is doesn't work anymore (there is a subroutine I need to call from a desktop application).
After some debugging, I found out that the issue happens when I read the external files (binary format):
- in .exe version, everything goes fine;
- in .dll version, I'm able to read up to few thousand data, but not the complete database.
Actually the code is the same. May it be a compiler bug?
Walter