I’m trying to port Open Cascade 5 to Borland C++ Builder 6.x. During this work I’ve discovered numerous bugs in the Open Cascade 5.0 source code. So far I haven’t gotten further than TKernel, and the number of coding errors in the Win32 specific code is frightening. So I’m wondering if anybody has used Open Cascade on Windows for anything but simple test cases.
__leave is a Microsoft Visual C++ specific keyword that causes execution to jump to the end of the __finally block - NOT the beginning.
Testing against INVALID_HANDLE_VALUE for a handle returned by CreateEvent and friends will NOT work as expected.
Call RegCloseKey on registry handles, not CloseHandle.