Dec 092017
4th patch to Borland C++ v 3.1.
File BC31P4.ZIP from The Programmer’s Corner in
Category C++ Source Code
4th patch to Borland C++ v 3.1.
File Name File Size Zip Size Zip Type
COMBOBOX.CPP 6944 2338 deflated
COMBOBOX.OBL 14511 5544 deflated
COMBOBOX.OBM 13733 5407 deflated
COMBOBOX.OBS 12568 5185 deflated
README.TXT 1582 756 deflated

Download File BC31P4.ZIP Here

Contents of the README.TXT file

There is a problem in the TComboBox::Transfer function in the
ObjectWindows Library (OWL) for Borland C++ and Application Frameworks
Version 3.1 which is solved with the accompanying patch.

Under certain circumstances, a pointer (the comboboxdata->Selection
pointer) can be deleted twice, and not enough space is then allocated
for the selection when it is retrieved (we do not allocate
space for a null terminator). This causes memory corruption
which can crop up at various times.

Included in this patch is a new version of the OWL source code file
COMBOBOX.CPP. The only changes are in the TCombobox::Transfer function.

The source has been compiled for the various memory models already.
These are the files:

COMBOBOX.OBS compiled for small memory model
COMBOBOX.OBM compiled for medium memory model
COMBOBOX.OBL compiled for large memory model

They are compiled versions of the new .CPP file for the small model,
medium model and large model. One could replace the current modules
in the lib with them by first changing into the OWL\LIB directory and
using the TLIB utility. For example,

cd \borlandc\owl\lib
tlib owlws +- combobox.obs
tlib owlwm +- combobox.obm
tlib owlwl +- combobox.obl

The DLL will have to be rebuilt with the new combobox.cpp source file.
This is done using the makefile in the OWL\SOURCE directory.

If one first replaces the combobox.cpp file in the OWL source directory
with the new COMBOBOX.CPP file in this patch .ZIP file, and then performs a:

make -DDLL

It should properly rebuild the OWL DLL.

 December 9, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>