Thank you very much, it now works fine !!
You were right, my buffer was too big and was corrupting the stack. I didn't think about this because the same code was working fine with FS2004 and FSX before SP1. You were 100% right.

Thanks again !!
Eric