Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
WalletBeef
Jun 11, 2005

What is the best, free, windows C++ compiler?

Adbot
ADBOT LOVES YOU

WalletBeef
Jun 11, 2005

Has anyone been able to get Purify 7.0 properly working with Visual C++ in Visual Studio 2008, if so, what did you have to do to get both pieces of software working correctly?

I'm having a hell of a time getting purify to show me the exact line numbers where errors are occuring.

Right now, I get something like: Error at Class.obj:123
instead of Error at Class.cc:123.

For some reason purify isn't finding my source code, despite the fact that I specified the exact directory in the source look up.

WalletBeef
Jun 11, 2005

Plastic Jesus posted:

It apparently doesn't work with VS 2008 PDB files. That' my guess, anyway. I was upgraded from 2005 to 2008 and started seeing exactly the problem that you describe. The good news is that the line numbers are accurate (though sometimes it will strangely specify the wrong object file). You just have to open them up outside of Purify.

Well, I was afraid of that. The next logical step I was going to take was to uninstall 2008 and go with 2005. :smith: Thanks

WalletBeef
Jun 11, 2005

Plastic Jesus posted:

It apparently doesn't work with VS 2008 PDB files. That' my guess, anyway. I was upgraded from 2005 to 2008 and started seeing exactly the problem that you describe. The good news is that the line numbers are accurate (though sometimes it will strangely specify the wrong object file). You just have to open them up outside of Purify.

Well, I installed VS 2005 and Purify is happy. It's showing line numbers, source code and all. Thanks a loving ton. :unsmith:

WalletBeef
Jun 11, 2005

I'm using the Xerces C++ XML parser, (the XercesDOMParser class) to parse a 60 meg xml file and I have a question.

Here is the declaration of my parser:

code:

void parseSomeStuff (const wchar_t* filePath)
{

    std::auto_ptr<XercesDOMParser> parser (new XercesDOMParser());
    parser->setValidationScheme(XercesDOMParser::Val_Never);
    parser->setDoNamespaces(false);
    parser->setDoSchema(false);
    parser->parse(filePath);

    // Do parsing stuff after this line.
}
After the call to parse, the memory usage jumps by 742 Megs.

Is there a more lightweight class I can use to parse this file without sacrificing too much in the speed department?

Adbot
ADBOT LOVES YOU

WalletBeef
Jun 11, 2005

Avenging Dentist posted:

You're probably going to have to use SAX (more like SUX) if you want to keep memory usage to a minimum.

Yea, SAX does suck, but it did the job well. I was able to reduce that jump in memory from by about 90%. Yay.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply