From owner-freebsd-questions Fri Mar 1 14:18:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from n2.peterstar.net (home.PeterStar.ru [217.195.65.12]) by hub.freebsd.org (Postfix) with ESMTP id E598A37B402 for ; Fri, 1 Mar 2002 14:18:39 -0800 (PST) Received: from vladik.home (dialup92-229.ip.PeterStar.net [217.195.92.229]) by n2.peterstar.net (8.11.6/8.11.4) with ESMTP id g21MIbM13815 for ; Sat, 2 Mar 2002 01:18:37 +0300 (MSK) Received: (from vladislav@localhost) by vladik.home (8.11.6/8.11.6) id g21Mfde00744 for freebsd-questions@FreeBSD.ORG; Sat, 2 Mar 2002 01:41:39 +0300 (MSK) (envelope-from vladislav) Date: Sat, 2 Mar 2002 01:41:38 +0300 From: "Vladislav V. Anikiev" To: freebsd-questions@FreeBSD.ORG Subject: Motif Message-ID: <20020302014138.A713@vladik.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello everyone, Could anybody explain me, why does it go wrong ? Is there anything to resolve this problem ? I suppose there is something, but I've found only that something wrong with xmLabelWidgetClass in XtVaCreateManagedWidget() call. Curently I'm using open-motif-2.1.30_1 under FreeBSD 4.4 I'll be very greatfull, if someone write me about it. Vladislav #include #include main( int argc, char **argv) { Widget prParent, prLabel; XtAppContext pAppContext; XmString pString; static String psText = "Hello, world !"; prParent = XtVaAppInitialize( &pAppContext, "Label Simple", NULL, 0, &argc, argv, NULL, NULL); pString = XmStringCreateSimple( psText ); prLabel = XtVaCreateManagedWidget("Hello", xmLabelWidgetClass, prParent, XmNlabelString, pString, NULL); /******* after XtVaCreateManagedWidget() call, I see following *** X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 19 (X_DeleteProperty) Resource id in failed request: 0x0 Serial number of failed request: 80 Current serial number in output stream: 86 ******************************************************************/ XtRealizeWidget(prParent); XtAppMainLoop(pAppContext); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message