De{*word*81} Kernel Error 22 & 23

Anyone know what causes De{*word*81} Kernal Errors 22 & 23 ?

I have a DLL created in BCB3 (Non-VCL) and an exe created in BCB3 (again
non-VCL).

When I attempt to run the exe from within BCB3 I get De{*word*81} Kernel error
23

The de{*word*81} works on VCL apps.

This problem means I have to do my debugging for the exe & dll in BC5.02

Any ideas?

David