[xml] Program crashes at LIBXML_TEST_VERSION
- From: "Ahmad Jalil Qarshi" <ahmad jalil qarshi gmail com>
- To: xml gnome org
- Subject: [xml] Program crashes at LIBXML_TEST_VERSION
- Date: Tue, 19 Jun 2007 09:57:56 +0500
Hi,
I am using libxml library in a dll. When I call a function from my dll, using this library, my application crashes. My code looks like:
------------------------------------------------------------------
int FormatCommand(char szName[], char szAction[], char szID[], char szCustID[], char szLogin[], int nUserType, int nPayType, int nPayMode, char OldCustPswd[], char NewCustPswd[], char OldPkgID[], char NewPkgID[], char szStatus[])
xmlDocPtr doc = NULL; /* document pointer */
xmlNodePtr root_node = NULL, headerNode = NULL, ServiceNode = NULL, BodyNode = NULL, node = NULL, node1=NULL;/* node pointers */
xmlDtdPtr dtd = NULL; /* DTD pointer */
xmlChar *xmlbuff;
int buffersize;
char buff[256];
int i, j;
printf("\nIn FormatCommand Function\n");
LIBXML_TEST_VERSION;
(At this point my application crashes) printf("\nLIBXML_TEST_VERSION\n");
doc = xmlNewDoc(BAD_CAST "1.0");
root_node = xmlNewNode(NULL, BAD_CAST "RequestMessage");
xmlDocSetRootElement(doc, root_node);
------------------------------------------------------------------
When I debuged my application I got following information:
***********************************************************************
[mediaapp:/mediaapp/media/qarshi/control]dbx ctrlmain core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...
Illegal instruction (illegal opcode) in . at 0x0 ($t1)
warning: Unable to access address 0x0 from core
(dbx) where
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
.() at 0x0
FormatCommand(0x205b26d8, 0x205b2b98, 0x2ff21580, 0x0, 0x0, 0xffffffff, 0xffffffff, 0xffffffff) at 0xd3be460c
generateSend(0x20011928, 0x2ff21b70, 0x20011938) at 0xd3be298c
SendCommand(0x20011928, 0x2ff21c6c, 0x2ff21b70, 0x20011938) at 0xd3be3988
Manager(0x2ff221a0, 0x20013f18), line 283 in "ctrlManager.c"
unnamed block $b473, line 126 in "ctrlCPManager.c"
CPManager(), line 126 in "
ctrlCPManager.c"
main(argc = 2, argv = 0x2ff226dc), line 255 in "ctrlmain.c"
(dbx) quit
***********************************************************************
Kindly help me to resolve this problem.
Thanks in anticipation.
Ahmad Jalil Qarshi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]