You're welcome. You might want to use COMRETURNERROR in your error handler. Maybe take a look at subclassing the Session Class which has a lot of the error handling and proper settings for a COM server. For long reports, maybe try asynchnronous processing.
BTW, all of these techniques are in ActiveVFP(
www.activevfp.com) which you can download and check out - all of the source code is free. Also included are debugging and a project hook that transparently "unloads" the COM server when you recompile it...
>This indeed seems to work very well, thanks!
>
>We never used a COM-server before, can we expect specific problems with it like memory-related stuff or something when using it on a IIS-webserver?