COM Object

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
etwoss
Posts: 12
Joined: Tue Jul 15, 2014 7:50 am

COM Object

Post by etwoss »

Hi

because i still have problems with access violations when compiling 64 Bits i did some tests with simple app's using 64 Bits.
They all work fine!

So i wondered if the fact that i'm using it in a 64 Bits COM object could be the problem.
Our 32 Bits COM server does not have these problems.

Do you have heard off this?

The access violation is on TXLSMMUVectorManager.GetItemsBlockSize
Eric
etwoss
Posts: 12
Joined: Tue Jul 15, 2014 7:50 am

Re: COM Object

Post by etwoss »

Hi

Found the problem in:

function TXLSMMUVectorManager.MemorySize: integer;

changed:
Result := Integer(PXVectHeader(FVector).OffsetToLastEq) + GetItemsBlockSize(TMMUPtr(LongWord(FVector) + PXVectHeader(FVector).OffsetToLastEq));
To
Result := Integer(PXVectHeader(FVector).OffsetToLastEq) + GetItemsBlockSize(TMMUPtr(Int64(FVector) + PXVectHeader(FVector).OffsetToLastEq));
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: COM Object

Post by larsa »

Hello

Thank you. Will include the fix in the next update.
Lars Arvidsson, Axolot Data
Post Reply