Hello list! I'm trying to make loading of libraries dynamic, so that those would not be required always - just when needed.
I've created globals for function pointers, library handle. I open the library - everything is cool. I get processes addresses - still cool. I use some functions - cool. Generally whole ft2232 initialization works fine (there are many functions called dynamically and that works, the read serial number is correct), then there are initialization functions for JTAG chain and suddenly function ft2232_read() fails, but in some strange way... The FT_Read is executed (via a function pointer of course), and it returns. There is no OpenOCD error (so some status is returned, the number of bytes is ok, and so on). The function gets to it's end, but never returns to the caller. Windows shows "access violation" exception, so I'm guessing that dynamially called FT_Read destroys the stack frame and return address somehow... Any idea what I may be doing wrong? What info can I provide for you to help me in that task? 4\/3!! _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development