XtAppSetWarningMsgHandler() XtAppSetWarningMsgHandler()
Name
XtAppSetWarningMsgHandler - set the high-level warning handler.
Synopsis
XtErrorMsgHandler XtAppSetWarningMsgHandler(app_context, msg_handler)
XtAppContext app_context;
XtErrorMsgHandler msg_handler;
Inputs
app_context
Specifies the application context.
msg_handler
Specifies the new high-level warning handler.
Returns
A pointer to the previously installed high-level warning handler.
Description
XtAppSetWarningMsgHandler() registers the procedure msg_handler in app_context as the procedure to be invoked by XtAppWarningMsg(). It
returns a pointer to the previously installed high-level warning handler.
The default high-level warning handler provided by the Intrinsics is named _XtDefaultWarningMsg(). It looks up a message in the error
resource database (see XtAppGetErrorDatabaseText()), substitutes the supplied parameters into the message, and calls XtWarning(). See
XtWarningMsgHandler(2) for an explanation of how to write a customized high-level warning handler.
msg_handler should generally invoke the low-level warning handler to display the message.
Usage
Note that application-context-specific error and warning handling is not implemented on many systems. Most implementations will have just
one set of error handlers. If they are set for different application contexts, the one performed last will prevail.
See AlsoXtAppError(1), XtAppErrorMsg(1), XtAppGetErrorDatabaseText(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHan-
dler(1), XtAppWarning(1), XtAppWarningMsg(1),
XtErrorHandler(2), XtErrorMsgHandler(2).
Xt - Error Handling XtAppSetWarningMsgHandler()
Check Out this Related Man Page
XtAppError() XtAppError()
Name
XtAppError - call the low-level error handler.
Synopsis
void XtAppError(app_context, message)
XtAppContext app_context;
String message;
Inputs
app_context
Specifies the application context.
message Specifies the error message to be reported.
Returns
XtAppError() terminates the application and does not return.
Description
XtAppError() passes its arguments to the installed low-level error handler. On POSIX systems, the default handler is _XtDefaultError().
It prints the message to the stderr stream and calls exit().
Usage
To report non-fatal error messages or warnings without exiting, use XtAppWarning() or XtAppWarningMsg(). To change the low-level error
handler, use XtAppSetErrorHandler().
XtAppError() calls the "low-level" error handler. It is better to use XtAppErrorMsg() which calls the "high-level" error handler. The
high-level handler looks up the error message in a resource database and so allows for customization and internationalization of error mes-
sages.
Although the Intrinsics interface allows separate error and warning handlers for each application context, most implementations will sup-
port only a single set of handlers. When a new handler is installed, it will be used in all application contexts.
See AlsoXtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarn-
ing(1), XtAppWarningMsg(1),
XtErrorHandler(2). XtErrorMsgHandler(2).
Xt - Error Handling XtAppError()
Does anyone know what this warning means we get it now and then. We just repalced aour hard drive and reinstalled sco and now get this warning:
warning: Addtooverflowlist rp=F02967ac ha=0 id=0 lun=0
CAn anyone help on this problem. I have searched the web but cant find anything.
thanks (0 Replies)
I get this error warning.
test.c: In function 'main':
test.c:5: warning: incompatible implicit declaration of built-in function 'memset'
After compiling this code
#include <stdio.h>
int main() {
char pBuffer;
memset(pBuffer, 0, 32);
return 0;
}
What seems... (2 Replies)
I have received a warning message, does anyone know what this means?
warning: userdel processing continues
resource: /var/opt1k/sco/unix/5.0.6 Ga/etx/group-t
could not be allocated due to :
cannot securly create new file. (0 Replies)
I received a warning when I tried to compile my program that said:
warning: comparison between pointer and integer
Could you please explain to me what this means, and in what ways I could possibly fix this?
Thanks for your help! (2 Replies)
A warning...
I used to be a BT Broadband customer, but changed to Sky in February.
BT withdrew the service with the cutover and that was that.
But I've just checked my credit card statements, and they've billed me for the service again for the past two months! (2 Replies)
Hi,
I wish to know if we can generate customised compile time warning.
say i have a code
Obj * i = 0;
while (true )
{
if( ! i )
// some code that raise a warning while compilation .Not error
i->somefunction();
} (2 Replies)
Hi Gurus,
One of my old server running AIX 4.3.2.
One member of admin group account keeps getting warning message for days as below.
From errpt log I couldn't find any clue related to this warning message. What I can say is this message shows up a few days after we did a disk change.
My... (6 Replies)
Hi, does anyone knows how to get rid of this annoying warning? Thank you!
#include <netdb.h>
main()
{
gethostbyname("test");
}
$ gcc -static test.c
/tmp/ccW9HG18.o: In function `main':
test.c:(.text+0x19): warning: Using 'gethostbyname' in statically linked applications requires at... (3 Replies)
hi
I am getting the following warning while compilation of my C project.
/var/tmp/aaaa003z6: warning: 101: extra tokens (ignored) after directive
Can anyone help what this warning means and how to get rid of this.
Thanks (1 Reply)
Hello,
I am teaching myself shell scripting and I was wondering if there was a way to rename a file and display a warning or prompt message? And if you had a file like
/home/me/blah/ for example, what are the ways to use the CD to get to /me?
Would it be ../home/me? Are there other ways to... (4 Replies)
I see the following warning message during the boot sequence of any FreeBSD machine on stock hardware:
acd0: FAILURE: READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00
Trying to mount root from ufs:/dev/ad6s1
What does this mean and is it really a warning or something that should be fixed?
... (2 Replies)
Hi All ,
Am using unix KSH .
I would like to clarify two doubts.
Whenever am transfering the zero size file am getting the warning message netout.
files will be transferred to target server or not?
I have used the code as
if
then
VAR="ftp.sh -c put ${FILE} ${FILE}... (2 Replies)
All
I see cpu and memory usage are under control, only cache gets high upto 99% using sar -r command
I did echo3 and cleaned the drop caches
do we need to monitor this , why my application going high upto 99.8% memused in sar command , this is cache memory which is going high
will this... (12 Replies)