RSS
 

Posts Tagged ‘C++’

Unavailable Visual Studio Intellisense in C++ projetcs

10 nov

Sometimes, in C++ projects, Visual Studio IntelliSense stops working with apparently no reasons. There are many official and non official guides on how to troubleshoot it and they almost always say that, given some conditions are respected, if IntelliSense doesn’t work, it is suggested to delete its database to let Visual Studio rebuilds it. To be able to do it, it is necessary to close the current solution, otherwise windows wouldn’t allow the access to the .ncb file.

However this procedure apparently doesn’t work for me. Read the rest of this entry »

 
2 Comments

Posted in geek

 

double-check your damn pointers, okay?

13 feb

Yesterday, working on my thesis, I felt like I died and resurrected more than once in a few hours. Trust me, I’m beginning to understand the way the compiler feels ;-)

Jokes apart, the following C++ code contains a bug similar to the one I found: can you spot it? (please forgive the bad indent )

void calledMethod( some_class *object )
{
arg = doSomething();
delete object;
object = new some_class( arg );
}

void callerMethod()
{
[...]
calledMethod( anObject );
anObject.doSomethingElse();
[...]
}

 
4 Comments

Posted in geek, me

 

funziona?

04 feb

Non vorrei cantare vittoria prima del tempo, però da quando ha iniziato a funzionare la mia tesi ha continuato a dare segnali sempre più incoraggianti.

Per onorare il titolo di nerd conferitami ufficialmente oggi da Fra, ecco un riassunto, un po’ hardcore, sui primi esperimenti col mio solver metaeuristico per il Dial-A-Ride Problem.

Read the rest of this entry »

 
5 Comments

Posted in geek, me