Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!pacific.mps.ohio-state.edu!tut.cis.ohio-state.edu!uccba!uceng!ucece1.ece.uc.edu!montjoy From: montjoy@ucece1.ece.uc.edu (Robert C. Montjoy) Newsgroups: comp.windows.x Subject: Re: Help with X Toolkit Error message Message-ID: <2214@uceng.UC.EDU> Date: 24 Sep 89 00:48:55 GMT References: <730@cbnewsi.ATT.COM> <8909181421.AA08057@LYRE.MIT.EDU> Sender: news@uceng.UC.EDU Organization: University Of Cincinnati Lines: 20 Hi, In a recent posting some one got the error message (Xt error: bad alloc) I got a similair message when I did "XtSetArg(argtoset, value, argcnt++);". Since XtSetArg is a macro argcnt got incremented twice causing the problem. When I replaced the offending XtSetArg() with XtSetArg() atgcnt++; . The problem went away. So make sure your code doe not have this programming mistake. Sincerily, Rob Montjoy E-MAIL montjoy@uc.edu