font error with 0.06

hi all~ when i try to run the eventsExample in 0.06, i’ve encounterd the following error:
OF_ERROR: Error: font not allocated --line 789 in oftruetypefont.cpp
however, i can run this example successfully in 0.05.
i’m using VS2008 and is running in debug mode.

Another thing is, when i try to compile this example (and all the other examples) in 0.06 with VS2008 in release mode, it cannot even compile correctly. Here is the error:
fatal error C1900: Il mismatch between ‘P1’ version ‘20080116’ and ‘P2’ version ‘20070207’
1>LINK : fatal error LNK1257: code generation failed.
However, for 0.05, i can compile correctly both for debug and release. I’ve searched this error in google. someone says this is because the compatibility between patches of VS. Does anyone konw how to figure out this problem?
thanks in advance~

mmm, this example works on my computer (Linux, Debian, of v0.06)

It seems that you are having a problem loading the font… In ofTrueTypeFont.cpp:

	if (!bLoadedOk){  
		ofLog(OF_LOG_ERROR,"Error : font not allocated -- line %d in %s", __LINE__,__FILE__);  

and “bLoadedOk” is set to true in the loadFont() method.
please check if “vag.ttf” exists in your data folder when calling

vagRounded.loadFont(“vag.ttf”, 32);

Another thing you can try is to make the changes suggested in
may be you are having problems with memory management…


kike E.

solved. it’s because vag.ttf isn’t in the data folder…
thank you Kike.