Problems with GetConfigureInfo, ListConfigureInfo etc.
Posted: 2006-02-23T17:53:58-07:00
I'm using 6.2.6 on Win XP Pro system.
The GetConfigureInfo function doesn't seem to be returning the correct info.
The configure.xml file contains eight configure entries but the GetConfigureInfo function says that there are 16 and when I list them, it has each of those eight entries duplicated.
This code (with appropriate declarations and Initialize and Destroy Magick around it):
produces this in configlist.txt:
If I use that same code but call GetCoderList instead, it generates the correct info.
While trying to sort out why this was happening I decided to try ListConfigureInfo:
This crashes and later on I found that ListCoderInfo also crashes - both trying to write to address 00000010 in strcmpi.
GetTypeList works but ListTypeInfo crashes.
I haven't been able to find the problem yet.
Pete
The GetConfigureInfo function doesn't seem to be returning the correct info.
The configure.xml file contains eight configure entries but the GetConfigureInfo function says that there are 16 and when I list them, it has each of those eight entries duplicated.
This code (with appropriate declarations and Initialize and Destroy Magick around it):
Code: Select all
p = GetConfigureList("*",&no,&exception);
f = fopen("configlist.txt","w");
fprintf(f,"%ld\n",no);
while(*p != NULL) {
fprintf(f,"%s\n",*p++);
}
fclose(f);
16
COPYRIGHT
COPYRIGHT
HOST
HOST
LIB_VERSION
LIB_VERSION
LIB_VERSION_NUMBER
LIB_VERSION_NUMBER
NAME
NAME
RELEASE_DATE
RELEASE_DATE
VERSION
VERSION
WEBSITE
WEBSITE
If I use that same code but call GetCoderList instead, it generates the correct info.
While trying to sort out why this was happening I decided to try ListConfigureInfo:
Code: Select all
file = fopen("coderopts.txt","w");
if(file != NULL) {
ListConfigureInfo(file,&exception);
fclose(file);
}
GetTypeList works but ListTypeInfo crashes.
I haven't been able to find the problem yet.
Pete