Hi Simon, Paul et al,

Yesterday I've posted to osg-submissions notification redirection interface.
For windows you could redirect messages to debug output with single line of
code.

osg::setNotifyHandler(new osg::WinDebugNotifyHandler)

You can define custom notification sinks by implementing osg::NotifyHandler
interface:

class MyNotifyHandler : public osg::NotifyHandler
{
  void notify(osg::NotifySeverity severity, const char *message)
  {
     printf("severity %d: %s", severity, message);
  }
}

Apart from visual studio debugger output I use DebugView
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx all the time,
it is a little tool from SysInternals (now Microsoft) that shows debug
messages from all applications. Very handy when You try to solve problems
with released application at target system and no debugger is available.

Regards,
Maciej

2009/5/13 Simon Hammett <[email protected]>

> Many, (most?) osg users are using windozes.
> So redirecting osg::notify messages should be in that list.
>
> (Plz somebody give me a job developing for *ix.!)
>
> 2009/5/12 Paul Martz <[email protected]>:
> > I've created the following list of debugging tips to help new OSG
> developers
> > become productive faster:
> >   http://www.skew-matrix.com/bb/viewtopic.php?f=6&t=5
> >
> > I hope you find it useful. Feedback appreciated.
> >
> > Paul Martz
> > Skew Matrix Software LLC
> > http://www.skew-matrix.com
> > +1 303 859 9466
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
>
>
>
> --
> http://www.ssTk.co.uk
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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

Reply via email to