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