deadchip: if you're using MBQ_GetCDInfo you don't need to do MBQ_GetCDInfoFromCDIndexId as well
2006-02-20 05120, 2006
deadchip
is for now, that is with the given bt, identical to the standalone compiled code with my changes to read the cdindex
2006-02-20 05136, 2006
deadchip
inhouseuk, allright but why does it work standalone yet crashes in the app?
2006-02-20 05142, 2006
deadchip
and if i don't need that, what should i do instead?
2006-02-20 05148, 2006
deadchip
err
2006-02-20 05150, 2006
deadchip
GetCDInfo
2006-02-20 05151, 2006
deadchip
hmm
2006-02-20 05159, 2006
deadchip
i'm not using that
2006-02-20 05103, 2006
deadchip
inhouseuk, you didn't look at my diff
2006-02-20 05107, 2006
deadchip
you only looked at your own code
2006-02-20 05113, 2006
deadchip
i've said i've modified it to read the cdindex off the disc
2006-02-20 05121, 2006
deadchip
so it doesn't use GetCDInfo
2006-02-20 05127, 2006
deadchip
but GetCDInfoFromCDIndexId
2006-02-20 05130, 2006
deadchip
please look at my paste LOL
2006-02-20 05152, 2006
deadchip
the problem is an entirely different one namely that the code works standalone but not inside our app
2006-02-20 05119, 2006
deadchip
it took me an hour or so to get into how to code with the client lib but once i got that i've modified the getalbum.c code to just read the cdindex itself
2006-02-20 05137, 2006
deadchip
and that works, but not if i put it into our code, 1:1 mind you, non-modified right now, and it's still crashing
2006-02-20 05149, 2006
deadchip
i'm not saying libmb is at fault or something, i just don't know where to start debugging
2006-02-20 05102, 2006
nikki_
I'm going to bed now
2006-02-20 05119, 2006
deadchip
nite
2006-02-20 05130, 2006
nikki_ has quit
2006-02-20 05147, 2006
LjL has quit
2006-02-20 05132, 2006
deadchip
i guess the question would be under which conditions can libmb malfunction in this way when the same code works in a testcase?
2006-02-20 05155, 2006
BGreeNZ
inhouseuk: Just before you go too, is there any way to *copy* (rather than move) a discID from one album to another?
2006-02-20 05102, 2006
inhouseuk
deadchip: cpp_example.cpp shows a better method of doing it than modifying getalbum
2006-02-20 05118, 2006
deadchip
inhouseuk, well i'm using the C api for a purpose
2006-02-20 05124, 2006
deadchip
cause our app is written in C
2006-02-20 05134, 2006
inhouseuk
BGreeNZ: no, it isn't possible to copy the discid
2006-02-20 05141, 2006
deadchip
i know it's late, and i'm bugging you, and you don't know me
2006-02-20 05151, 2006
inhouseuk
deadchip: it uses exactly the same api
2006-02-20 05156, 2006
deadchip
but this all still doesn't explain the problem
2006-02-20 05130, 2006
deadchip
inhouseuk, ok but do you have an explanation as for why it works standalone but possibly not inside an application (this isn't meant as an inquiry, but just as a question...)
2006-02-20 05112, 2006
inhouseuk
not sure, compare the value of args in the standalone and your version
but then acquiring the cdindex doesn't work anymore
2006-02-20 05157, 2006
deadchip
can i enable debug somehow?
2006-02-20 05102, 2006
deadchip
i tried to use mb_SetDebug(0
2006-02-20 05103, 2006
deadchip
err
2006-02-20 05106, 2006
deadchip
mb_SetDebug()
2006-02-20 05114, 2006
deadchip
but that doesn't print anything
2006-02-20 05152, 2006
deadchip
or can i get a printout of the state of the musicbrainz_t instance?
2006-02-20 05100, 2006
deadchip
or something like that; a sanity check, etc
2006-02-20 05106, 2006
inhouseuk
mb_SetDebug(o, 1)
2006-02-20 05134, 2006
inhouseuk
should print the RDF query and result to stderr
2006-02-20 05137, 2006
deadchip
ah
2006-02-20 05138, 2006
deadchip
ok
2006-02-20 05141, 2006
deadchip
hmm
2006-02-20 05108, 2006
deadchip
ok i've enabled debuggin printout, but it prints nothing
2006-02-20 05113, 2006
deadchip
it gets as far as this:
2006-02-20 05117, 2006
deadchip
(apprently successful)
2006-02-20 05122, 2006
deadchip
ret = mb_Query (o, MBQ_GetCDTOC);
2006-02-20 05129, 2006
deadchip
and then i make the function return for now
2006-02-20 05139, 2006
deadchip
now when i add the next step
2006-02-20 05106, 2006
deadchip
this: ret = mb_GetResultData(o, MBE_TOCGetCDIndexId, data, 256);
2006-02-20 05125, 2006
inhouseuk
what are you getting as a return code on mb_Query (o, MBQ_GetCDTOC);
2006-02-20 05111, 2006
deadchip
that gives:
2006-02-20 05121, 2006
deadchip
BMPx-Message: 1
2006-02-20 05115, 2006
deadchip
so succeeds
2006-02-20 05116, 2006
deadchip
it*
2006-02-20 05144, 2006
deadchip
this is where it crashes ret = mb_GetResultData(o, MBE_TOCGetCDIndexId, data, 256);
2006-02-20 05152, 2006
deadchip
and i don't get why
2006-02-20 05129, 2006
deadchip
i don't see a reason why it would, i don't know the API for long but this isn't even code that i have written but is one of your testcases which works standalone, so i'd say our app misbehaves
2006-02-20 05147, 2006
deadchip
but there's no apparent reason or evidence for that either leaves me clueless
2006-02-20 05157, 2006
inhouseuk
MBE_TOCGetCDIndexId isn't in any of the example code