Showing posts with label computer problem. Show all posts
Showing posts with label computer problem. Show all posts

Friday, February 01, 2008

Suppressing First-chance Exception in Visual C++ 2005

(Feb 1, 2008)

I encountered a lot first-chance exceptions in my program when I debugged my program in Visual C++ 2005. Exception messages in the output window can be annoying if they cloud other important messages. After searching the Internet for a while, I found a simple solution about this on http://www.helixoft.com/blog/archives/24 . I can tell a window output not to show 'exception messages' by right clicking within the output window and uncheck 'Exeption Messages'.

If you want to know more about first-chance exceptions, follow links in the http://www.helixoft.com/blog/archives/24

Tuesday, January 29, 2008

New line positioning problem in Visual Studio 2005

(Jan 29, 2008)

I encountered a curious problem about new line positioning in Visual Studio 2005, specifically Visual C++, from time to time. The issue is when I press enter to insert a new line. The cursor will not move down to a new line, but stick to the same line.

Today, I noticed that code folding may cause some issue about this. If the last function in a file is folded, this problem may occur.

(see Processor3.cpp)

Wednesday, January 23, 2008

How to fix "Insufficient system resources to complete the API"

(Jan 23, 2008)

There is a blog complaining about this. It shows some reasons that this issue is a major problem for a laptop. I agree with him, although mine is a desktop.

As of Jan 23, 2008, Microsoft does not have a patch for this issue, but hotfix is available from here

Friday, September 21, 2007

Precompiled header does not exist

Friday Sep 21, 2007

I wasted about 20 minutes to figure out how to solve this compile error: precompiled header does not exist. I performed rebuild the entire solution with the hope that the precompiled header will be recreated.

Finally, I found that we could explicitly tell Visual Studio to create a precompiled header as shown in the figure below. After a successful compilation, Visual Studio will automatically change the 'Create' option to 'Use' option instead.

Sunday, September 16, 2007

Visual C++ and LNK2005 Problem

Sep 16, 2007

Today, I badly got strucked with LNK2005 error in Visual C++. According to linking error messages, it was a conflict between nafxcwd.lib and uafxcwd.lib. This issue will arise if one module (library or executable) "Use Unicode Character Set" and another "Use Multi-Byte Character Set".

It is important to note that LNK2005 normally arises because of two or more projects are set differently. There are two spots worth looking:

1. General Setting
2. Code Generation Setting

Notice that there is nothing to do with linking setting, although this issue is linking problem.

More info at:
http://www.velocityreviews.com/forums/t285209-lnk2005error-in-visual-c-v-60.html
http://support.microsoft.com/kb/q148652/

Wednesday, May 30, 2007

Adobe Contribute 3 and PSAPI.DLL problem

I installed Windows XP Professional x64 and Adobe/Macromedia Studio 8. It turned out that I could not run Contribute 3 successfully. It said something about entry point in PSAPI.DLL. According to Adobe (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=fc6e9ff5), this problem comes from Internet Explorer 7, we need to get psapi.dll from C:/Windows/System32 and place it to Contribute directory.