this is a classic case of having mixed up jumbles of debug and non-debugQuote:>When I run this program I get a CrtIsValidHeapPointer(pUserData) error when I
>delete rs within the dll.
(release) code calling each other through inadvertant dynamic linking, object
registration, etc...
somewhere, you are doing this too.. as you run your app under the de*,
watch the output window (alt-2 i think) as it tells you what dlls are being
loaded. you should see one that is not a debug dll...or just check your project
settings and see who is being loaded improperly.