Crystal Space
Welcome, Guest. Please login or register.
October 24, 2014, 07:22:20 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8816 Members
Latest Member: Hejduczo
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Stoping the Fatal Popups
« previous next »
Pages: [1] Print
Author Topic: Stoping the Fatal Popups  (Read 3079 times)
muffinpeddler
Full Member
***
Posts: 122


View Profile Email
« on: January 18, 2006, 06:08:46 am »

I am getting rather sick of the messages that pop up every time I want to run my program.  The messages appear to be from bugs in CS that are probably fixed, but either way, I wish they would just show on the console instead of an X dialog which is EXTREMELY annoying.  Besides, they say "Fatal Error" but are far from fatal.  How can I disable or reroute these messages?  Thanks.
Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #1 on: January 18, 2006, 06:14:13 am »

Well, it would be nice to know what these messages said, i wasn't aware CS triggered any Fatal Error popups.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #2 on: January 18, 2006, 06:28:26 am »

I am getting rather sick of the messages that pop up every time I want to run my program.  The messages appear to be from bugs in CS that are probably fixed, but either way, I wish they would just show on the console instead of an X dialog which is EXTREMELY annoying.  Besides, they say "Fatal Error" but are far from fatal.  How can I disable or reroute these messages?  Thanks.

Using the standard reporter listener (iStandardReporterListener) which you can get from the object registry you can control where and how messages appear. You can disable the popups there.

Greetings,
Logged
muffinpeddler
Full Member
***
Posts: 122


View Profile Email
« Reply #3 on: January 18, 2006, 06:37:55 am »

Code:
crystalspace.graphics3d.shadercompiler.xmlshader:  snippets/fog-mappings.inc: no <include> node
This is an older CVS build though, if this still applys I don't know.

Thanks Jorrit I will look into that.
Logged
muffinpeddler
Full Member
***
Posts: 122


View Profile Email
« Reply #4 on: January 20, 2006, 09:37:57 am »

If anyone else wants to know how to disable any messages popping up as an X dialog, try this:

Code:
    csRef<iStandardReporterListener> reporter = CS_QUERY_REGISTRY(
            GetObjectRegistry(), iStandardReporterListener);
    reporter->SetMessageDestination(CS_REPORTER_SEVERITY_ERROR,
            true, //stdout
            true, //stderr
            true, //do console
            false, //do alert (ANNOYING!)
            true, //do debug
            false); //do popup (default = false)
It's the alert part you don't want.  Is it just me, or is the console enough of a notification?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #5 on: January 20, 2006, 09:40:49 am »

If anyone else wants to know how to disable any messages popping up as an X dialog, try this:

Code:
    csRef<iStandardReporterListener> reporter = CS_QUERY_REGISTRY(
            GetObjectRegistry(), iStandardReporterListener);
    reporter->SetMessageDestination(CS_REPORTER_SEVERITY_ERROR,
            true, //stdout
            true, //stderr
            true, //do console
            false, //do alert (ANNOYING!)
            true, //do debug
            false); //do popup (default = false)
It's the alert part you don't want.  Is it just me, or is the console enough of a notification?

Keep in mind that if you release a game the console will most likely not be there/disabled.

Greetings,
Logged
muffinpeddler
Full Member
***
Posts: 122


View Profile Email
« Reply #6 on: January 21, 2006, 06:58:31 am »

Yea, but for dev, console output is just fine for me.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.189 seconds with 17 queries.