smikes@cbnewsi.ATT.COM (steven.mikes) (09/14/89)
Hi,
A program that was working up until I recently added some minor changes to
has suddenly begun to fail with the following message:
X Toolkit Error: insufficient resources, bad alloc
Reference Count: 1
If anyone out there can tell me what this means or where I can look to
reference this it would help me in tracking down what the problem is.
I have no clue as to what this message means, I suspect it is an indication
that the number of allocated resources have reached some limit. I need an
answer to this one ASAP if anyone out there knows.
Thanks in advance.
Steve Mikes
{...}hound!smikes
(201)949-7737
#include <usual/disclaimer>swick@ATHENA.MIT.EDU (Ralph R. Swick) (09/18/89)
> A program that was working up until I recently added some minor changes to > has suddenly begun to fail with the following message: > > X Toolkit Error: insufficient resources, bad alloc > Reference Count: 1 I can't find that error message anywhere in our sources. Perhaps you could be explicit about what implementation you are using. As a first debugging technique, try setting a breakpoint in the routine XtError and see who's on the stack then. This error message is at least formatted in the style produced by XtError, so there's a chance it comes through there.
montjoy@ucece1.ece.uc.edu (Robert C. Montjoy) (09/24/89)
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