Hi all.
I have received a very strange error code when using v1.03. A Data Misalignment (0x80000002) error.
Here is the piece of code that generates this error:
As soon as the program reached the CreateSurface, the error appears.
The weird thing is that is works without problem when I use v1.02. I tried to clean the project, rebuild, but no luck. I also tried to move this function around in the program, no luck either.
What can cause this to fail? And especially when v1.02 works? Anything changed in v1.03 regarding the CGapiBitmapFont class?
Thanks!
PS: Here is the font I'm using:
http://www.techlogic.ca/aw/6809chargen.bmp
Also, the font is really at the location in the program, as it works in 1.02...
I have received a very strange error code when using v1.03. A Data Misalignment (0x80000002) error.
Here is the piece of code that generates this error:
- Code:
CGapiDisplay *gDisplay = new CGapiDisplay;
if(gDisplay->OpenDisplay(hWnd,0))
{
delete gDisplay;
return false;
}
if(gDisplay->SetDisplayMode(GDDISPMODE_NORMAL))
{
delete gDisplay;
return false;
}
CGapiBitmapFont *S1 = new CGapiBitmapFont;
S1->CreateSurface(TEXT("\\temp\\fonts\\6809chargen.bmp"));
S1->SetColorKey(RGB(255,0,255));
S1->CreateFont(0,NULL);
delete S1;
As soon as the program reached the CreateSurface, the error appears.
The weird thing is that is works without problem when I use v1.02. I tried to clean the project, rebuild, but no luck. I also tried to move this function around in the program, no luck either.
What can cause this to fail? And especially when v1.02 works? Anything changed in v1.03 regarding the CGapiBitmapFont class?
Thanks!
PS: Here is the font I'm using:
http://www.techlogic.ca/aw/6809chargen.bmp
Also, the font is really at the location in the program, as it works in 1.02...