I have fixed the problem: it is a Mac issue because the same code compiled on Linux works well.
Forum Rules
Bookmarks