PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

STL issues??

Ive been using the STL in my game code for some time now...both with Borland Builder for my editors and for the actual game (up until now Ive done all of the testing right on my pocket pc...with everything working beautifully). But, in an effort to make debugging simpler, Ive attempted to recompile through VC6 and test the game right on my desktop.
This is where things got weird:

Code that had seemed to work fine on my PPC and through Borland suddenly has BIZARRE crashes through WIN2K. Ive painstakingly gone through all of my code and tried to see what may or may not be compatible, and from what Ive seen, the only difference has been which STL Ive been using:

- On PPC2K2 Ive used the STLCE library
- In Borland Ive used their own internal library
- With VC6, Ive tried both the internal library and STLPORT, both of which had very different and odd crashes.

So, that aside, here are my questions:

1) Has anyone else run into similar problems with your WIN32 builds?

2) Is it wise to go ahead and attempt to use STL in my game, with these different platforms, or would it be safer to just do it the 'old-fashioned' way and hand-code the lists, arrays, etc.?

3) If people ARE using the STL regularly in their PPC games, which STL library are you using?


Any help is greatly appreciated. Thanks!
STLport 4.5.3 (on Pocket PC) because I didn't get the latest compiling. I'd like to upgrade though.

I think on VC6 I still use whatever it came with, because I had trouble getting STLport working on PC. But I can't remember.

Once I get the latest STLport working, I'd like to upgrade VC6 to use it also.

I see no reason not to use the STL. I haven't yet tracked a problem I've had to the STL.
One thing I've noticed between eVC and VC6 is that eVC initializes variables to 0 while VC6 will leave them with trash in them...

It's bit me a few times.