2011
08.18

Breakpoint Wont be Hit in Visual Studio 2010

I’ve been working on a 3D VideoGame prototype these last months, using Visual C++ (Visual Studio 2010). With such work, some vacancies and some job affairs I havn’t had enough time for publishing something interesting in the blog… 😉

Visual Studio 2010 worked fine at the beginning, but one day, suddenly, breakpoints stopped working. A yellow exclamation mark symbol was shown over them and placing the mouse cursor over such symbols showed the message “Breakpoint won’t be hit”.

Searching on the internet for this problem I found out it was a common one in almost every version of Visual Studio, specially in 2008 and 2010. Most common causes for this error are:

  • The project was compiled in Release mode, not in Debug one
  • Debug symbols are not found (or wrong path)
  • Incremental Debug linking option is not enabled
  • Not having installed the latest service packs and patches (some of them address this problem)
  • Corrupted installation: Reinstalling the application, restoring default configuration or even deleting Registry Keys and Local App configuration stored in the Windows User profile folders might fix this case

The fact was none of the above worked for me, but found out that if I started Visual Studio with a different user account everything worked like a charm. ❓ After opening two projects (each generated with a different user) and compared differences on the .vproj XML files I found these extra lines added to the “faulty” one:

Removing these lines from the .vproj file and recompiling made the breakpoints to work again! The case was these lines referenced User configurations that didn’t appear in my VS configuration panels or couldn’t change (some of them were grayed). These XML lines contain a conditional inclusion and the path is $(UserRootDir)\MicrosoftCpp.$(Platform). It happened that path was C:\Users\Boriel\AppData\Local\Microsoft\MSBuild\v4.0, which was not the Visual Studio configuration Folder. Deleting it fixed the issue (it’s regenerated the next time Visual Studio IDE is started).

To avoid even more troubles I not only removed that folder, but also the local configuration stored in my profile (C:\Users\Boriel\AppData\Local\Microsoft\VisualStudio\10.0) and related registry keys (HKEY_CURRENT_USER\Software\Microsoft\VSCommon\10.0). Afterwards I restarted the IDE and a splashscreen warning told me the application was being prepared to be used for the first time. And the problem was gone. 😉

Share
2011
04.06

Magic Square

This week El Pais’ math challenge was easier to solve than previous ones (maybe that’s why I resolved it without using the computer this time :D).

The problem is the following: get a product magic square, that is, a 3×3 square whose product for numbers in every row, column or diagonal gives the same (unknown) amount . All numbers are unrepeated positive integers. It’s known that the number in the center cell is 15.

My approach was to assign each cell a variable name:

 

$$a$$ $$b$$ $$c$$
$$d$$ $$15$$ $$f$$
$$g$$ $$h$$ $$i$$


Read More »

Share
2011
03.26

This week’s math challenge of El País (Spanish video) is again about a graph. In this case, the graph is a cube (8 vertex, 12 edges) numbered as shown in the video.

An ant starts walking from vertex #1 and changes it direction at random on each vertex (might even turn back from the same edge it came from). Vertex #7 and #8 are poisoned. If the ant happens to walk into one of them it will die. The challenge consist in find out the probabilities of the ant dying or not and in which vertex (#7 or #8) when it does.
Read More »

Share
2011
03.22

Yesterday at midnight was the deadline of El País math challenge which consisted in finding the Hamiltonian path of a given graph (or to give a demonstration it hadn’t any as it was the case). A friend of mine told me a simple and elegant demonstration based on graph coloration, which is the one explained in the video (the video is in Spanish but it’s my bet there are more demonstrations like this in English on the internet). If you can understand Spanish, I encourage you to watch the video. It’s really short, entertaining and easy to understand.
Read More »

Share
2011
02.21

My 1.0 Friends

I have wanted to write about this for a long time. The fact is, as always, I’ve been overbusy with my projects, (e.g. with the ZX BASIC Compiler), that I haven’t had much free time.

I was born in the late 70’s. I grew up in the 80 which marked my adolescence (e.g. the ZX Spectrum, but also pop music and many other iconic things of that time). I consider myself a geek and I love new technologies. But, on one hand, I hate consumerism and being always on the cutting edge gadgets (especially if they are expensive). On the other one, if I had money and space I would create my own collection of microcomputers and other vintage machines (which could be consider another form of consumerism).
Read More »

Share
2010
12.18

After ‘Fumeque’


Bueno, tras un mes ajetreado, vuelvo a las andadas. En el post anterior dejé caer que no estaba seguro de mi decisión en el ámbito laboral (ya vi cosas que no me gustaron desde el primer día); no estaba muy convencido, pero como me he considerado siempre una persona insegura, pensé que se debía a eso. Sin embargo mi intuición no se equivocó. Evidentemente fue un error, del que afortunadamente salí bien parado, y de paso aprendí y vi las cosas más claras (hay momentos en la vida que te iluminan).
Read More »

Share
2010
09.24


Fumeque es una palabra Canaria usada para designar ese viento de marejada con poca visibilidad. Es una palabra que suelo usar mucho con mis amigos, y que en gran parte describe la situación que percibo. 🙁

Estos no han sido días muy halagüeños para mí. Tanto en lo profesional (que he hecho una jugada arriesgada cuyo resultado aún no me termina de convencer), como en lo personal: hace nada he cumplido ya 38 años, una edad con la que ni siquiera me puedo imaginar… Veo el futuro ante mí, y es para llorar. Podría extenderme hasta la saciedad hablando de la crisis, que parece que ahora tiene la culpa de todo lo que nos pasa, en vez de los culpables de la misma (los varones, según algunos, los banqueros según otros…). Pero no es eso lo que más me entristece.
Read More »

Share