Board index » cppbuilder » Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide

Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide

Hi all.
I have a program that can be compiled without any problems.
it runs without any problems if started in windows (borland c++ doesn't
run).
If the program runs in the ide (after compolation), the program
runs only a short time, for example a flip between front and backbuffer
kills it.
Does anyone know about this?

Thank you very much

Mathias

 

Re:Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide


Sometimes Direct3D and OpenGL  problems can be resolved by calling

_control87(MCW_EM, MCW_EM);  /* defined in float.h */

when you create the application.

--
Regards,
Scott
http://members.cox.net/scottheiman/
(a valid e-mail address can be found on my home page)

Re:Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide


Quote
"Mathias Michaelis" <Maff...@gmx.de> wrote in message

news:a68lbu$v6d$06$1@news.t-online.com...

Quote
> Hi all.
> I have a program that can be compiled without any problems.
> it runs without any problems if started in windows (borland c++ doesn't
> run).
> If the program runs in the ide (after compolation), the program
> runs only a short time, for example a flip between front and backbuffer
> kills it.
> Does anyone know about this?

> Thank you very much

> Mathias

Does the program check for lost surfaces (and restore them if necessary)?

Re:Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide


Yes, it does.
May this cause problems?

Mathias

Re:Directx8 Compiled Programm runs if started in windows but not stabel if started in the ide


Hi Mathias,
In your replies, could you please quote the text of the original question
and the reply so that your questions are in context.
Of course snip any long replies to the minimum.
I will just put this back in context if you don't mind.

Quote
>(You, original post)
>Hi all.
>I have a program that can be compiled without any problems.
>it runs without any problems if started in windows (borland c++ doesn't
>run).
>If the program runs in the ide (after compolation), the program
>runs only a short time, for example a flip between front and backbuffer
>kills it.
>Does anyone know about this?
>>(Me, original reply)
>>Does the program check for lost surfaces (and restore them if necessary)?
>(you, reply to my post)
> Yes, it does.
> May this cause problems?

There would be problems if your program *did not* check for lost surfaces
and restore them. I was just guessing that running the program under the
de{*word*81} in the IDE may be more likely to result in lost surfaces, than when
running the program stand alone. But if your program checks and restores
surfaces correctly, it seems the problem lies elsewhere.
If you are sure the Flip function is at fault, try to obtain the error
return code and post it here. Also I assume you are running the program in
full  screen mode, both when running under the IDE and when running stand
alone as the Flip function only works in full screen mode.

Dave

Other Threads