NeroAPIGlueConnect from within a statically linked library

hi,
I just got a interesting problem:
As long as NeroAPIGlueConnect(NULL) is directly called from within my application everything works fine. But when called from within a function from a (statically linked) library everything crash down.
Any idea how to fix this (need it in an external library…)