On Nov 12, 2005, at 12:45 AM, rod kay wrote:
Within the simpleformer.cpp SampleFloat function, there is a check made on the passed in 'type' param (which is a csStringId) to see if it
is equivalent to a local stringHeights (also a csStringId).
    The local stringHeights within simpleformer.cpp has value 30
accoring to gdb, but the 'type' csStringId param i i pass in has value
0. This is how i create the 'type' param which i pass to SampleFloat
  csRef<iStringSet> strings = CS_QUERY_REGISTRY_TAG_INTERFACE
                                  (objectRegistry,
                                   "crystalspace.shared.stringset",
                                   iStringSet);
  stringHeights = strings->Request ("heights");

simpleformer.cpp uses this exact same code to request its "heights" ID, so it should work correctly.

It almost seems as if the strings->Request in my code is operating
on a different set of strings than the  strings->Request in
simpleformer.cpp, or maybe i have not setup CS engine correctly ?

There may be a possibility that some module is incorrectly replacing the global "shared.stringset" with its own between the time that simpleformer.cpp requests its ID and you request yours. This should not be happening, but there might be some rogue code somewhere. You can check for this possibility for printing out the value of ` (iStringSet*)strings' in both your code and in simpleformer.cpp. If they differ, then there is probably some bad module bogusly replacing the global "shared.stringset." (The next step would be to locate that module.)

-- ES



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to