From owner-freebsd-openoffice Sat Oct 12 7:23:13 2002 Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43F6F37B401; Sat, 12 Oct 2002 07:23:11 -0700 (PDT) Received: from tomts7-srv.bellnexxia.net (tomts7.bellnexxia.net [209.226.175.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C27E43EB3; Sat, 12 Oct 2002 07:23:10 -0700 (PDT) (envelope-from kevin.hendricks@sympatico.ca) Received: from localhost.localdomain ([65.93.135.194]) by tomts7-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021012142309.ZZDX25523.tomts7-srv.bellnexxia.net@localhost.localdomain>; Sat, 12 Oct 2002 10:23:09 -0400 Content-Type: text/plain; charset="iso-8859-1" From: "Kevin B. Hendricks" To: Martin Blapp Subject: Re: [porting-dev] FreeBSD: Uncatched exception problem Date: Sat, 12 Oct 2002 10:24:37 -0400 X-Mailer: KMail [version 1.4] Cc: , , References: <20021012153830.N15308-100000@levais.imp.ch> In-Reply-To: <20021012153830.N15308-100000@levais.imp.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200210121024.37106.kevin.hendricks@sympatico.ca> Sender: owner-freebsd-openoffice@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Martin, That's good. It shows the stack walkback found that routine and that the throw from within the same share library is broken somehow (we won't need two shared libs to recerate the problem). Now let's try one more thing. Remove the "throw" specificier from the definition of queryTypebyDescriptor() and then change the catch in framework/source/dispatch/basedispatcher.cxx in the routine: BaseDispatcher::implts_detectType( const css::util::URL& aURL , css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , sal_Bool bDeep ) To use ( ... ) so that it catches everything. Then try it one more time. If that doesn't work, try changing the newly added throw in queryTypeByDescriptor to explicitly throw a Runtime exception and not a wrappered exception to see if that gets caught up one level. Please let me know what you find. Kevin On October 12, 2002 09:40, Martin Blapp wrote: > Ok, > > I had to add a "\n" to the printf, so it got flushed out properly. > > fprintf(stderr,"Here !\n"); > > I can see now that it get's printed. > > If I remove the throw, OO.org does not crash anymore. > > OUString sDetectorDecision; > try { > sDetectorDecision = xDetector->detect( seqDescriptor ); > } > catch ( ... ) { > fprintf(stderr,"Here !\n"); > } > > I get then a requester window where I can choose a fileformat. > > So the question is still why we get a unexpected exception. > > Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message