Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtappsetwab(3) [hpux man page]

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 Also
  XtAppError(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 Also
  XtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarn-
  ing(1), XtAppWarningMsg(1),
  XtErrorHandler(2).  XtErrorMsgHandler(2).

Xt - Error Handling														      XtAppError()
Man Page

15 More Discussions You Might Find Interesting

1. SCO

warning addtooverflowlist

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)
Discussion started by: davekasp
0 Replies

2. Programming

warning from gcc

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)
Discussion started by: sledge76
2 Replies

3. UNIX for Dummies Questions & Answers

warning message

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)
Discussion started by: qphillips
0 Replies

4. HP-UX

HP-UX 11.11 warning error

I have screen erron with HP-UX warning:select failed error code 9 :confused: (3 Replies)
Discussion started by: dcporras
3 Replies

5. Solaris

[ID 882636 kern.warning] WARNING: interrupt level 11 not serviced

Can anybody tell what this kernel warning is, it's critical (9 Replies)
Discussion started by: voxure
9 Replies

6. Programming

comparison between pointer and integer

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)
Discussion started by: sjung10
2 Replies

7. What is on Your Mind?

BT Internet con - a warning

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)
Discussion started by: prowla
2 Replies

8. Programming

Compile time warning

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)
Discussion started by: wojtyla
2 Replies

9. AIX

AIX warning message: 651-812: System shutdown due to

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)
Discussion started by: linux.cao.ca
6 Replies

10. Programming

gethostname warning

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)
Discussion started by: paulquater
3 Replies

11. Programming

warning :extra tokens (ignored) after directive

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)
Discussion started by: pratim09
1 Replies

12. Shell Programming and Scripting

How do display a warning message?

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)
Discussion started by: kris2010
4 Replies

13. BSD

Mount root warning message

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)
Discussion started by: figaro
2 Replies

14. Emergency UNIX and Linux Support

How to ignore Netout Error.?

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)
Discussion started by: Venkatesh1
2 Replies

15. Red Hat

%memused is high

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)
Discussion started by: anil529
12 Replies