Author Topic: _ftol+ BASS_FX_TempoCreate  (Read 4155 times)

Chris

  • Posts: 1808
_ftol+ BASS_FX_TempoCreate
« on: 7 Nov '05 - 17:42 »
Hi everybody
I have here sometimes dedected a mysterious Crash and I`m not Sure if it has to do with Bass/BassFX

After BASS_FX_TempoCreate i will have sometimes (not allways the same Song)
a crash in msvcrt.dll _ftol  (invalide FloatingPoint Operation ) (EInvalidOp)
If needed I can Post a Debugger-Log ...
Greets Chris

« Last Edit: 7 Nov '05 - 17:46 by Chris »

mrscope

  • Posts: 3
Re: _ftol+ BASS_FX_TempoCreate
« Reply #1 on: 14 Apr '06 - 11:51 »
Hi!

I have your same problem.

Can you say me if you resolved and how this issue ?!?!

Thanks in advance, Luca

Chris

  • Posts: 1808
Re: _ftol+ BASS_FX_TempoCreate
« Reply #2 on: 14 Apr '06 - 12:43 »
Hi to solve this Problem do the following
Code: [Select]
var
 OldFloatValue : Word;

procedure TForm1.FormCreate(Sender: TObject);
begin
   OldFloatValue := Get8087CW;
   Set8087CW($133F);
end;

Code: [Select]
procedure TForm1.FormDestroy(Sender: TObject);
begin
    Set8087CW(OldFloatValue);
end;

Greets Chris

mrscope

  • Posts: 3
Re: _ftol+ BASS_FX_TempoCreate
« Reply #3 on: 14 Apr '06 - 13:23 »
THANKS !!!!

For your quickly reply... and naturally for the solution :-)

Bye,
Luca

ps but this problem it's not documented in bass doc or yes ?!?

Chris

  • Posts: 1808
Re: _ftol+ BASS_FX_TempoCreate
« Reply #4 on: 14 Apr '06 - 13:32 »
Hi
yep.....because Floating Point Errors have directly nothing to do with bass....
So far I know i in some Compiler you can set this under Compiler Options in Delphi 6 not.....
But I`m not shure which Compilers will have this switch in the Options
Greets Chris