[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-swt-dev] MoveMemory Variant question...
- From: Veronika Irvine <Veronika_Irvine@xxxxxxxxxx>
- Date: Mon, 9 Aug 2004 11:22:42 -0400
- Delivered-to: email@example.com
MoveMemory does not zero out the original memory, it copies the data to
the new location. The difference between MoveMemory and CopyMemory is
that "(Source + Length) cannot overlap the Destination range passed in to
avneesh saxena <avneeshs@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
07/30/2004 12:07 PM
Please respond to
[platform-swt-dev] MoveMemory Variant question...
I'm a little confused by Variant's use of MoveMemory. In the
method, the type of the variant is "moved" into a short. This should zero
out the memory in the variant(pData) corresponding to vt_type. However,
later in this method (if the type is not one of the standard ones), a
VariantChangeType is tried with the same pData which now has a zero for
vt_type!. Am I misunderstanding something or is this a bug.
platform-swt-dev mailing list