Ok, maybe not but it is pretty wiered. I use this code:
// Dark Fighter 2 tests.cpp : The main entrypoint for the application.
//
#include "DarkSDK.h"
//#include "resource.h"
#include "stdio.h"
#include "stdlib.h"
void ShowFPS();
void DarkSDK (void)
{
dbSyncOn();
dbSyncRate(0);
dbSetDir("media");
dbLoadAnimation("vid.gif",1);
//load animation "image.gif",1
dbPlayAnimationToImage(1,1,0,0,320,240);
//dbLoopAnimation(1);
// loop until the escape key is pressed
while (LoopSDK())
{
dbCLS();
if (dbEscapeKey())
{
break;
}
dbPasteImage(1,0,0);
ShowFPS();
dbSync();
}
}
void ShowFPS ( )
{
/*
char CharHandX[10];
char CharScratch[10];
char CharFrogY[10];
char CharFrogX[10];
char CharBGX[10];
*/
char czFPS[10];
sprintf ( czFPS , "%d FPS " , dbScreenFPS ( ) );
/*
sprintf (CharFrogY, "%i", FrogY);
sprintf (CharFrogX, "%i", FrogX);
sprintf (CharBGX, "%i", BGX);
sprintf(CharHandX,"%i",HandX);
sprintf(CharScratch,"%i",Scratch);
*/
dbText ( 0 , 0 , czFPS );
/*
dbText(0,20,CharFrogY);
dbText(0,40,CharFrogX);
dbText(0,60,CharBGX);
dbText(0,20,CharHandX);
dbText(0,40,CharScratch);
*/
}
To load a gif animation and play it on the screen. Now instead of just apearing black or crashing or whatever it comes up with a window with the title "Protection error" and the words
"Debugger dettected-please close it down and restart! Windows NT users please note that having the WinIce/SoftIce service installed means that you are running a debugger!"
This doesn`t happen if I rem out the animation lines. It just comes up normaly and does what it`s supposed to. Anyone care to shed some light? Want a screeny?
Edit:The cause is the "dbLoadAnimation("vid.gif",1);" line. I wonder if it doesn`t like me using gifs?
Gimme teh votez!!!!