|
From what you're describing your dependencies are out of whack. This is generally solved by doing a Rebuild All (or delete all binaries and Build as you did). However, you need to find out why an incremental build is not building the binaries that need to be built for the app to run. I know this isn't a complete answer, but maybe it will help you in terms of looking in a given direction.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Thanks.
Now that I know it isn't normal I will look into solving it. Just incase it proves to be a hard solution, Is there a problem besides being annoying with the method I have been using?
-Jack
To an optimist the glass is half full.
To a pessimist the glass is half empty.
To a programmer the glass is twice as big as it needs to be.
|
|
|
|
|
Jack Handy wrote:
Now that I know it isn't normal I will look into solving it. Just incase it proves to be a hard solution, Is there a problem besides being annoying with the method I have been using
No. It's just a pain (in terms of time) to have to rebuild all the time. However, it certainly doesn't hurt anything.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Jack this definitely isn't normal. In fact I've never seen anything like this and I work in VC++ a zillion hours a day, every day. It sounds like an out and out problem which is only randomly rearing its head, and doing a clean build makes it *appear* to go away.
Is the violation address consistent? If you are using a lesser version of Windows (not NT,2K,XP), then once something like this happens it can continue to happen until you reboot. Try and run your app under the Debugger at all times, then when you have a problem like this you can step right in and hopefully track it down. It could be a pointer which isn't pointing anywhere valid. If you have exception handling code in your app you should be picking up most if not all problems like this.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Hmmm, so you don't agree with Tom? (see above) Because that was along the lines of what I was thinking.
-Jack
To an optimist the glass is half full.
To a pessimist the glass is half empty.
To a programmer the glass is twice as big as it needs to be.
|
|
|
|
|
I agree with Neville. It looks like there may be something awry in your code.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hmmm, so you don't agree with Tom? (see above) Because that was along the lines of what I was thinking.
-Jack
To an optimist the glass is half full.
To a pessimist the glass is half empty.
To a programmer the glass is twice as big as it needs to be.
|
|
|
|
|
Jack Handy wrote:
Hmmm, so you don't agree with Tom? (see above) Because that was along the lines of what I was thinking.
Tom wrote:
However, you need to find out why an incremental build is not building the binaries that need to be built for the app to run.
I certainly agree with this, but in my experience VC doesn't get this wrong as long as you've got the project and it's dependencies set up correctly.
If you do a Rebuild All and then it happens again and none of the dependant code has changed, then me thinks it must be a problem in your code.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Neville Franks wrote:
If you do a Rebuild All and then it happens again and none of the dependant code has changed, then me thinks it must be a problem in your code.
It only happens if I do a normal build (F7) but is fine after I rebuild all.
-Jack
To an optimist the glass is half full.
To a pessimist the glass is half empty.
To a programmer the glass is twice as big as it needs to be.
|
|
|
|
|
I don't know if this really getting anyone anywhere. Why don't you jump into the debugger and track down the exception.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Tom is right in that you're likely run into weird behavior if VC++ doesn't get the dependencies right. And a "rebuild all" forces recompilation of all modules, thereby getting around a bad dependency check.
But I suspect the real problem may lie in the code. I've often run into annoying situations (my fault) when I forget to delete an unused #define from resource.h. It causes no end of problems until I figure out that I'm calling GetDlgItem() with a bogus id. Although the ASSERT s I liberally sprinkle my code with will usually catch that. But annoying all the same.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Very good point, Ravi. That's why while it doesn't hurt anything to do rebuilds, I let him know that it's probably a dependency issue so that he can start looking in that area.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
It may be worth checking your clocks date/time and seeing if its set to earlier then some of the .cpp/.h files of your project. This can cause the project to only build partially after a change and link using old .obj files.
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
Any recommendations for good books on getting started with Managed C++. Preferably aimed at experienced C++ developers.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
Hi Michael,
I personally enjoyed very much the MS Press Step By Step book. You do have to wade through a few "this is a variable" type sections. However, I personally don't mind that as I enjoy the tutorial, sequential steps approach as it quickly gets me through the demos of what I need to learn. I will add the caveat that if you've already been doing a lot of MC++, this book will be a waste for you.
I also have the APress book, but I just do not like the format of their books at all.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Hey Tom
This is slightly off-topic. But are there any 3rd party form designer tools for use with MC++?
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
I'm sure there will be and I've even had friends talk of writing one, but I haven't seen one yet.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
If an MC++ form designer comes out I bet I'll prefer that to VS.NET except maybe for MSDN
Nish
Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
|
|
|
|
|
Thanks, I'll have a look at the MS Press book.
What about the "Visual C++.NET Bible" (assuming you are the same Tom Archer)? What kind of stuff does that cover?
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
It's me
However, the VC++ .NET bible is named that simply because the product is now affixed with the .NET label whether you use it to write managed extensions or MFC. My book is an MFC book with about 5 chapters on managed extensions, which is why I didn't mention it.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
Ok, I'll wait and see what the MS Press one is like first. I might have a look at your book later.
When does the Second Edition of Inside C# get released, Amazon.co.uk is still only listing the first edition
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
I've never seen my reviews over there. The "Petzold of C#"? That might be just a bit of hyperbole I'll take it though!!
Anwyay, I have no idea why it's not listed on the UK Amazon. It should be in stores this week and I know that US Amazon is shipping it now. I'll ask the publisher tomorrow.
Cheers,
Tom Archer
Author, Inside C#
A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.
|
|
|
|
|
can anyone tell me which program that i have to use to create avi file..
i want to use canimation in mfc.. but need avi file. i have never seen avi in my life. don't know how to create either..
i know for BMP file, i can use adobe photoshop, paint program and some other drawing programs. but what is avi?? how to create one my own.
what i really want is an animated .gif file. is avi is the same thing like .gif file???
|
|
|
|
|
avi I thought was audio video something (interchange maybe).
animated gif's are similar but no sound...
Theres tons of free tools that will create AVI's for you from bitmaps and such...
Maybe Flash has a tool to convert *.swf files to avi's
Check out www.wotsit.org for full details on the AVI file structure.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
There are a number of applications that can be used to both execute and create AVI files on download.com
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|