Robert- Also, you can't call GlobalFree(hglbMem) without an argument. From the Borland CPP help file:
"If the hgblMem parameter is NULL, GlobalFree fails and the system generates an access violation exception." If malloc() and free() will work here in a DLL for you (and they should - I don't think you're getting into multithreaded issues here), they're better choices. -Mark [EMAIL PROTECTED] ________________________________________________ Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html

