End of my rope (using datamodule in OLE Automation Server)

Does it crash everytime, or just after used once?

There is a function that needs to be called when the DLL is unloaded.
Usually your Application object calls it but since you're in a dll the
application object is not created.  There used to be an example that
came with d2 on using the BDE in a DLL.  I can't seem to find it in

Also check out www.dejanews.com, I know this has been answered in the
'public' delphi forums before.