# staticCFunction that compiles but doesn't execute

**URL:** <https://discuss.kotlinlang.org/t/staticcfunction-that-compiles-but-doesnt-execute/24583>\
**Category:** Support\
**Created:** [April 11, 2022, 7:55pm UTC](https://discuss.kotlinlang.org/t/staticcfunction-that-compiles-but-doesnt-execute/24583 "2022-04-11T19:55:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelos-project](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/angelos-project/32/9468_2.png) [@angelos-project](https://discuss.kotlinlang.org/u/angelos-project)\
**Post date:** [April 11, 2022, 7:55pm UTC](https://discuss.kotlinlang.org/t/staticcfunction-that-compiles-but-doesnt-execute/24583/1 "2022-04-11T19:55:28Z")

</div>

I have class method `Base.initializeSignalHandler` which calls `init_signal_handler` which takes a staticCFunction lambda, however the program compiles and executes, but doesn’t run `init_signal_handler`.

![Skärmavbild 2022-04-11 kl. 21.48.44](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/6/672e14621acbe6bf077344147a2177987b8daf64.png)

![Skärmavbild 2022-04-11 kl. 21.49.28](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/f/f1c04b357006f90fee55c2e1110b0e6567b38548.png)

![Skärmavbild 2022-04-11 kl. 21.48.18](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/2/26217927cec7aaf57fa409f70bae3105fca95f37.png)

Can anyone give me a direction where to check for error.

My exact understanding of

> `function` - must be _static_ , i.e. an (unbound) reference to a Kotlin function or a closure which doesn’t capture any variable

is not clear, is this the fault maybe?
