PRB: GetChunk & AppendChunk Not Allowed on Non-Memo FieldsLast reviewed: June 21, 1995Article ID: Q113949 |
The information in this article applies to:
- Professional Edition of Microsoft Visual Basic for Windows, versions 3.0
SYMPTOMSThe GetChunk and AppendChunk methods allow a Visual Basic program to move information in and out of Memo or Long Binary fields in a RecordSet. Using these methods with other fields types may cause a general protection (GP) fault. However, the more likely result is trappable error 3259 "Invalid field data type."
CAUSEThe GetChunk, AppendChunk, and FieldSize methods are only applicable to Memo or Long Binary type fields. If the field type is not checked before using one of these methods, the inappropriate use of these methods may cause a GP fault or a trappable error message.
RESOLUTIONTo avoid this problem, check the field's Type property before using any of these methods. These methods should only be used as they are intended to be used on Memo or Long Binary type fields.
MORE INFORMATIONA GP fault is not consistent due to memory mapping, so it is possible (but highly unlikely) that an .EXE may be produced with this problem without the programmer knowing that the .EXE is not working correctly.
Steps to Reproduce Behavior
Steps to Solve the Problem
|
Additional reference words: 3.00 GPF
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |