An exception is being thrown, which you're not catching, so the program
aborts. The samples and documentation are full of examples showing how to
catch exceptions.
Likely, one of your URLs is not correct (or Xerces doesn't think it's
correct).
Dave
Kent Vander
Velden To: [EMAIL PROTECTED],
[EMAIL PROTECTED]
<graphix@iastate cc: (bcc: David N
Bertoni/Cambridge/IBM)
.edu> Subject: Re: Solaris + gcc problems
(this should be so
simple...)
02/28/2002 12:26
PM
Please respond
to xerces-c-dev
Hi. I have included backtrace showing the problem that I am having.
I hope that someone can suggest a solution to this problem.
Thanks
xml_test2|Thu2:23pm} gdb ./test
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (sparc-sun-solaris2.6), Copyright 1996 Free Software Foundation,
Inc...
(gdb) run
Starting program: /compbio/users/kent/xml_test2/./test
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.
0 URL:
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Text&db=Nucleotide&dopt=xml&dispmax=200&uid=17740184
1 URL:
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Text&db=Nucleotide&dopt=xml&dispmax=200&uid=15156844
2 URL:
http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Text&db=Nucleotide&dopt=xml&dispmax=200&uid=13422061
Program received signal SIGABRT, Aborted.
0xfeba9ab8 in __sigprocmask ()
(gdb) where
#0 0xfeba9ab8 in __sigprocmask ()
#1 0xfeb9e514 in _resetsig ()
#2 0xfeb9dcb4 in _sigon ()
#3 0xfeba0cc8 in _thrp_kill ()
#4 0xff2cb198 in raise ()
#5 0xff2b57c4 in abort ()
#6 0xfee8ba70 in Letext ()
#7 0xfee8baa0 in __terminate ()
#8 0xfee8c5b8 in throw_helper (eh=0x575b0, pc=0x1fd33,
my_udata=0xffbef3f8, offset_p=0xffbef3f4)
#9 0xfee8c7c0 in __throw ()
#10 0x20014 in main (argc=1, args=0xffbef784) at test.cpp:27
(gdb) l test.cpp:27
22 cout << i << " URL: " << urls[i] << '\n';
23
24 XMLURL xml_url(urls[i]);
25
26 URLInputSource url(xml_url);
27 BinInputStream *input = url.makeStream();
28 }
29
30 return 0;
31 }
(gdb)
...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]