cplusDBAction 4.2                                                                                        Copyright addoit GmbH 2009

 

 

5.5.1 Address Space in a User DBTableSet

As soon as a Select(), Update(), Delete() or Insert() call was made on a table, a new internal Reference Pointer (TableRefPtr) will be created in the User DBTableSet. This pointer is visible and accessible from the outside, but its life cycle is still managed by the DBAction. This pointer may become invalid when leaving the current execution context or when calling methods like Clean(), Cancel() or Save(). The result would be an access on a local „Invalid TableRefPtr“.  For each table, there are 4 TableRefPtr created, one for Select(), Update(), Insert() and Delete() commands (see diagram below).

Picture 9: Address Space cplusDBAction with the User DBTableSet

Related Topics

5.5 Data Organization and Memory Management


Copyright (c) 1998-2009 addoit GmbH, All Rights Reserved.

www.addoit.com                                                                                                          Page 1 of 52