home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: nosmo@ximage.com (Vince Kraemer)
- Newsgroups: fj.mail-lists.x-window
- Subject: Error handler flow control
- Message-ID: <1993Jan26.034638.3168@sm.sony.co.jp>
- Date: 26 Jan 93 03:46:38 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
- Lines: 22
- Approved: michael@sm.sony.co.jp
-
- Date: Mon, 25 Jan 93 17:54:22 PST
- Message-Id: <9301260154.AA15744@ximage.com>
- Reply-To: nosmo@ximage.com
-
- I am writing a simple set of copy/paste routines for a form based
- application. I have gotten the "simple" error free case to work fine.
- Now I want to deal with Alloc errors in XChangeProperty "correctly" by
- using an incremental transfer scheme for large selections.
-
- Since I cannot tell how big a property is "too big", it seems that the
- only way to do this is to change strategies in an error handler.
-
- (Is there a way to tell what "too big" is? That could make this whole
- question moot, which I wouldn't mind a bit.)
-
- My problem is fairly simple, where does the error handler return to, if
- I say return in it? Does it return to the place where I set it (similar
- to longjmp), to the line after the request which generated the error, or
- someplace else completely?
-
- Thanks
- vbk
-