Jump to content
  • Advertisement
Sign in to follow this  
Evil Steve

Burn in hell, MSVC 6.0 (VC 2003 / VC 2005 question)

This topic is 4907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ugh, I hate MSVC 6.0. I just spent 3 hours trying to find out why my code only worked in debug mode and not in release mode. I have a CD3DDevice (wrapper around a D3D device), and a CSoundMgr (wrapper for DirectSound). They're both singletons. In debug mode it all works fine, but in release mode when I called a virtual function (everything was valid, I checked and re-checked), the CD3DDevice::Shutdown() function had been called before I got into the function. I also couldn't help notice that at program termination, the device was getting it's destructor called twice - which is never a good thing. Anyway, I fixed it by #including the CD3DDevice header in the file that had the virtual function. It seems as if MSVC had created 2 instances of my singleton in the same address, and was messing about with them. And similarly with my CSoundMgr So, my question is: Should I buy VC 2003? I know you can use the 2003 toolkit with the VC 6 IDE, but I like to be able to debug. Does the $109 version of VC 2003 have the optimizing compiler? And what about a profiler? Or, do you think it's suffering with MSVC 6, and waiting for VC 2005 to come out of beta, and then buying that? I don't have much cash at the moment (I can only afford to spend £100 maximum ($186 USD or 146 euros)), so I don't really want to buy VC 2003 if its no good, or if I can get VC 2005 a month later for the same price. Which brings me to another question - Does anyone know how much a version of VC 2005 with an optimizing compiler, and preferably a profiler will cost? Do all versions of VC now have the optimizing compiler? My crappy VC 6.0 version ("Standard") didn't come with the option for optimizations... Sorry of this seems more of a rant than a question :P Cheers, Steve

Share this post


Link to post
Share on other sites
Advertisement
Arg, Amazon hates me :(
I can buy VC 2003 for the equivalient of $149 on Amazon.co.uk
I can buy VC 2003 used, for the equivalient of $224 on Amazon.co.uk
I can buy VC 2003 for $90 on Amazon.com
I can buy VC 2003 used for $65 on Amazon.com

So how come it's almost twice the price on .co.uk? :(

And, I just found out that amazon.com won't ship VC 2003 to the UK >_<

Share this post


Link to post
Share on other sites
"Standard" VC 2003 does not have the optimizing compiler in the box. It is on the website, however. Just slap it in and away you go.

Share this post


Link to post
Share on other sites
Just a tip, if your application works in debug but not release, make sure you initialize all your variables in the constructors or equialent, because in release mode the variables are not set to 0 which they are in debug more (in msvc).

I used to have this bug a few times, but hen I switched to linux and now I have bugs all the time instead, just kidding.

Albert

Share this post


Link to post
Share on other sites
Quote:
Original post by thec
Just a tip, if your application works in debug but not release, make sure you initialize all your variables in the constructors or equialent, because in release mode the variables are not set to 0 which they are in debug more (in msvc).
Yeah, I'm aware of this. I wish it was that simple ;)
This was definitely the compiler playing about - I spent ages looking at the assembly, and dotting __asm int 3; about everywhere. It seems that MSVC thought that the static variable hadn't been created, so it created another copy of it, using the same memory address. Then it just went crazy...
Quote:
Original post by jdhardy
"Standard" VC 2003 does not have the optimizing compiler in the box. It is on the website, however. Just slap it in and away you go.
I was already planning on using the downloadable VC 2003 compiler, thanks :)

I E-mailed Amazon.co.uk, asking them if there's any possibility of them changing the price, but I doubt they'll do it.

I also fould that I can buy direct from Microsoft, but they seem to only ship to the US. I'd also prefer not to give Microsoft my address :P

Does anyone know when VC 2005 is out for retail, and how much it'll be?

Share this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
Does anyone know when VC 2005 is out for retail, and how much it'll be?

I heard that all the "final" versions of the Visual Studio Family are delayed until "Yukon" (SQL Server 2005) is ready, which is pushing the release date back further than it was before. Also, "Beta 2" is not out yet, but from what I've heard it'll be out sometime around Feb/March (so it could be any day now). I would guess that the final version would not come out until Summer-Fall time. How soon do you need an optimizing compiler? You could use VC Beta Express 8 (which has a debugger) and then buy VC 8 when it comes out in a few months.

Share this post


Link to post
Share on other sites
Hi,

Visual Studio 2005 Professional is already available for MSDN subscriber preview, and the express version is available for public download.

Short of that if you know a non-developer who is doing a computer science degree you could hassle them to ask if Visual Studio Pro is available. The Uni I go to has some agreement and I got a copy for the cost of a CD (as long as you don't use it commercially of course), I don't know if Microsoft do that for all educational institutes.

Share this post


Link to post
Share on other sites
Those aren't bad deals Steve, when I bought VC 2003 I paid £100 for it, so about £80 isn't too bad. The reason you're paying those prices is one or more of

a) Import cost (shipping, duty)
b) VAT
c) artificial price inflation

Depending on what you believe ;)

-Mezz

Share this post


Link to post
Share on other sites
I sugest you give VC++ 2005 express a try. I have both C++ and C# and both work great for me. The only thing I can't find is how to force it to use .NET 1.1 and not 2.0.

Or, as neonkandi said, you could try getting MSVS 2003 trough your uni if you are still a student. I still have a verison of that.. well for one more year at least. The MSAA is just great.

Share this post


Link to post
Share on other sites
Thanks for all the replies. I got a reply from Amazon.co.uk, if anyone is interested:
Quote:

Dear Customer

Thank you for contacting Amazon.co.uk.

We realise that from time to time, our customers will be able to
purchase a single product from another store at a lower price than
ours. We recognise that you have a choice of retailers and are
pleased that you would prefer to order from us. Unfortunately, we do
not have a price matching policy at this time.

Please note that in some cases our website offers lower prices via the
used and new offerings available from Amazon.co.uk Marketplace
sellers. For more information, please read our Marketplace Help
section:

http://www.amazon.co.uk/exec/obidos/tg/browse/-/3149521/

I hope you will be able to take advantage of the many discounts we
offer on your next visit to our store. We sincerely appreciate your
business, and we look forward to seeing you again.

I didn't mention that the "Buy it used" was more expensive then byuing it new :P

Unfortunately, I'm no longer a student (I graduated last October), so I can't apply for the academic version. My sister is a student, but I doubt I'll be able to use it if she applies for it.

I would use VC 2005 Beta, but You're not allowed to release anything you create with it, are you?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!