Hi Robert,

On Tue, Nov 4, 2008 at 10:58 AM, Robert Osfield
<[EMAIL PROTECTED]> wrote:
>> Any further ideas? I'm pretty sure I'm doing something wrong because
>> osgviewer works.
>
> It might be a long shot, but my only idea right now is that perhaps
> the main thread for OpenThreads::Thread::CurrentThread() is returning
> 0 one time then another value later on.
>
> Could you print out the value of  OpenThreads::Thread::CurrentThread
> as the first thing in your main then after any other operation to see
> if it's value does change.

As long as the program doesn't hang, it always returns 0. I print it
as the very first thing, parse the arguments, print it again, the try
to readNodeFiles(arguments), which hangs.

--------------------------------------
int main(int argc, char** argv) {
        cout << "OpenThreads::CurrentThread: " <<
OpenThreads::Thread::CurrentThread() << endl;

        osg::ArgumentParser arguments(&argc,argv);
        cout << "start!" << endl;
        cout << "OpenThreads::CurrentThread: " <<
OpenThreads::Thread::CurrentThread() << endl;

        osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments);
        
        cout << "OpenThreads::CurrentThread: " <<
OpenThreads::Thread::CurrentThread() << endl;
--------------------------------------

The first two show 0, the third print is never reached. The weird
thing is, if I install OSG from the Ubuntu repos (2.4), it works just
fine. I tried it at home.

Cheers,
max
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to