diff --git a/examples/osgmemorytest/osgmemorytest.cpp b/examples/osgmemorytest/osgmemorytest.cpp index dc27e9e6f..ffbaf2238 100644 --- a/examples/osgmemorytest/osgmemorytest.cpp +++ b/examples/osgmemorytest/osgmemorytest.cpp @@ -17,13 +17,15 @@ */ #include +#include #include #include #include #include #include +#include -#include +#include #include #include @@ -79,6 +81,8 @@ class ContextTest : public MemoryTest } else { + std::cerr<<"Error: Unable to create graphis context, problem with running osgViewer-"<tick(); - // use printf's below as C++'s ostream classes use more memory and are more likely to fail when everything // goes wrong with memory allocations.