Hello Fand,
Yes, the other program runs in the same SoC system with the same aocx. It´s just that my program is more large and calls more libraries. There´s also another difference, this init() function is called in the main() of the application that works. In the second case, init() is called from an object that belongs to a library.
Another important thing is that is of key importance that the aocx is loaded by code, as it gives enormous flexibility. I´m using a de1SoC [
http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&no=836]
Thanks for your help, I will try something else. I have included the init function without being part of the class that is in the library. I will try to include the init function as a method of my class. I will tell you my results this evening.
Thanks for your help!
Ricardo