VisionWorks simple example

I am trying to work out a very simple Nsight Eclipse c++ project with VisionWorks. I just want to load an image from file.
I am doing the following:

vx_context context = vxCreateContext();
vx_image image_vx = ovxio::loadImageFromFile(context, “…/hello.png”);
vxReleaseImage(&image_vx);
vxReleaseContext(&context);

But when I run the example I get:

(Esempio:8429): GStreamer-CRITICAL **: gst_element_factory_make: assertion ‘gst_is_initialized ()’ failed
terminate called after throwing an instance of ‘std::runtime_error’
what(): Cannot open file: …/hello.png

The problem should be with loadImageFromFile but I don’t know how to solve it.
Can someone help me?
Thank you in advance.

Ok, I found the solution. I had to initialize the nvxio Application using:

nvxio::Application &app = nvxio::Application::get();
app.init(argc, argv);