View Single Post
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-14-2011 , 18:29   Re: Registering SM handle type
Reply With Quote #8

Hm this is weird.
Does this happen with all of your 3 handle types or only one (if yes, which one) of them?

Maybe try something like
Code:
printf("%d: %x %s\n", i, SPVTypeNames[i], SPVTypeNames[i]);
typebuffer[i].type = handlesys->CreateType(...);
printf("%d: %x %s\n", i, SPVTypeNames[i], SPVTypeNames[i]);
printf("Result: %d\n\n", typebuffer[i].type);
(replace printf with some other printing/logging mechanism that you can see)

That way you can see:
- what exactly was passed into CreateType (address of name and string value stored on that address)
- if something modifies the values in the process

As far as the code SM goes, I don't see any reason why it would do this
__________________
hello, i am pm
PM is offline