TyRaNiD wrote:Well that error code isn't in the ones which came from puzzle bobble's debug symbols so there is really little way to tell what it means :)
so pretty much, sony have a whole list of error codes or probably a debug function that looks up error codes and prints out a error stating whats wrong?
The SDK hardware is probably connected to a PC for realtime remote debugging or something like that. Hence it would be compiled with debug info while testing (which the release build shouldn't but apparently they screwed up on that part with Puzzle Bobble.)
J.F. wrote:
The size of a pointer is the size of the pointer, not what it points to. :)
Yeah, i figured that. how would i figure out the size of what the pointer points to?
Assuming "struct foo *work;"
I usually use sizeof(struct foo) ie, taking the size of the type rather than the variable.
Although increasingly I'm liking sizeof(*work) which does the same thing, and allows you to change the name of the struct that 'work' is without having to find all the sizeof's in your codebase.
I'm not sure which is 'better' in any way, shape or form, others here may have better arguments for or against ...
sizeof(*pointer) should return the correct size assuming that its pointing to a statically declared thing (or size of array if it points to the first element).
yeah, i cant do that because i've declared a byte away globally and passed a pointer to it to a class, so when it compiles, its unable to determine the size of the byte array, instead i'll just use a #define WORK_SIZE 64*1024