BLE STACK INIT AND BLE EVENT HANDLER REGISTRATION

when we pass the BLE event handler as a function argument to BLE stack init function and register the function results in a deadlock mechanism. Is that we cant able to register the event handler function by passing  as an argument to stack init