When you work with preview or Character Generator via Delphi you may face the problem "floating division by zero".
This error is caused by interaction between Delphi and DirectX. To avoid this error you should add 'Math' directive to your 'uses' list and set in your class initialization the following lines:
Set8087CW(Default8087CW or $3F); SetSSEExceptionMask(exAllArithmeticExceptions);
This code disables errors in arithmetical operations.