PDA

View Full Version : Volumetric plugin crashes layout



kruemel_1
11-21-2006, 04:08 AM
Hi,
I'm trying to program a volumetric plugin and run into a litte strange problem:
I created a new plugin of classtype volumetric handler and assign to the instance handler functions, the evaluate and the flags function empty functions (functions without operation), only in the createfunction I allocate a double with new and return it.
Then I create a new scene, assign the plugin in the volumetrics-panel, go to camera view and if i select now the camera (with +C or with the "Camera" - Button at the bottom of the page) Layout crashes.
I tried it also with functions assigned to the item- and render-functions, but allways the same crash. Does someone know why this happens and how to work around this error?
I'm programming with Borland C++ Builder 6 on WinXP SP2, the error happens on 8.5 and 9.0

Sebastian G.
11-21-2006, 05:21 AM
Assigning funcs to evaluate and flags is not enough.
Destroy, init, cleanup, newtime etc. want to be implemented, too.

kruemel_1
11-23-2006, 12:49 AM
Found the error. If I compile without the VCL (the Borland Framework, which i don't use withing the plugins) the crash doesn't happen. Strange, but real.