Hi,
The General Protection Fault (GPF) errors can be hard to track down; usually they appear when a function access a piece of memory that does no longer belongs to the application.
My advice is to run your application step by sted to find out what function is the one causing the GPF; then watch the content of all the parameters that go into the function to make sure that you have memory reserved for all of them.
I hopes this helps to fix the problem or to get more information about it. Let me know if you have further questions on this.
Regards,
Juan Carlos
N.I.