Has metrowerks updated the STL that is included with the product?
Is this their own?

I've having some really strange problems with the string class, and need to
know if there's been an update to the template? (or if you use Dinkumwares
etc, if there's an update.)

Here is what I'm doing and what I'm seeing:

DatabaseInfo dbi;

 dbi.uicardno = volRefNum;
dbi.dbID = 0;
dbi.strfilename = pszNameSrc;
dbi.strpath = pszVol;

pszNameSrc is a char[], as well as strpath, this dbi structure is added to a
vector of these DatabaseInfo structures.
strfilename and strpath are string

If I verify the value of pszNameSrc, and the value of dbi.strfilename after
this code, they are the same and appear correctly.

After I loop through all the databases and build this vector of these
DatabaseInfo objects, (for testing) I then loop through this vector and
verify the information in the dbi structure.

for some reason (once in awhile, but on the very same filenames), I get
garbage at the end of strfilename. (e.g. database1.pdb becomes
database1.pdb*&*$ )

(but I know for a fact that the char[] is clean and has been zero'ed out
prior to puting the name into it.) - I've actually stepped through the code,
added this structure, then looked at the structure in the vector AND looked
at the original structure and the original structure would be clean and the
one in the vector would have the garbage.


thanks - any help would be appreciated!
bill




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to