I want to use curl in my app (as in the example, kotlinconf-spinner). I write: class KUrl () { var curl = curl_easy_init() fun unescape(...) {... curl_easy_unrscape(...) ...} If I run, then I get result: Segmention error. I think, statement 'var curl = curl_easy_init()...' don't init or don't fixed pointer