Search found 7 matches

by Paul van der Eijk
Mon Apr 24, 2006 6:16 pm
Forum: madBasic
Topic: Bug or misunderstanding
Replies: 9
Views: 27457

The original design (ZLib) does not need to know the uncompressed length. The uncompress function returns an indication that there was not enough memory. This function takes a var parameter which is length of output buffer allocated, on returns the length of the uncompressed data. No big deal, but I...
by Paul van der Eijk
Wed Apr 12, 2006 6:14 pm
Forum: madBasic
Topic: Bug or misunderstanding
Replies: 9
Views: 27457

Madshi, Respectfully disagree. I have two buffers, original data and compressed data. Compressed data goes to a file, preceeded with the length of the compressed data. But I do not always write the the same amount of uncompressed data. So when reading the data back, I know that my buffer of uncompre...
by Paul van der Eijk
Wed Apr 12, 2006 4:38 pm
Forum: madBasic
Topic: Bug or misunderstanding
Replies: 9
Views: 27457

Yes, I found that too a minute ago by stepping through the code.
Doing so, I think there could be a problem in line 3607; my change
(z.TotalInput = dword(srcLen)) and (z.TotalOutput <= dword(dstLen)) then //!!

Output size should be less/equal to capcatity, not equal??

--Paul
by Paul van der Eijk
Wed Apr 12, 2006 4:16 pm
Forum: madBasic
Topic: Bug or misunderstanding
Replies: 9
Views: 27457

Madshi,

I made that correction but no difference.

--Paul
by Paul van der Eijk
Tue Apr 11, 2006 11:17 pm
Forum: madBasic
Topic: Bug or misunderstanding
Replies: 9
Views: 27457

Bug or misunderstanding

Madshi, Trying to use compress / uncompress; the versions with two pointers. When I do compress --> uncompress the uncompressed buffer contains the correct data but the uncompress function returns 0. How do I get the uncompressed length? I expected uncompress to return that value. See code below wha...
by Paul van der Eijk
Fri Mar 17, 2006 4:28 pm
Forum: madKernel
Topic: NamedBuffer on WinXP/64
Replies: 2
Views: 7189

Thanks Madshi; problem fixed by downloading the current beta.

--Paul
by Paul van der Eijk
Tue Mar 07, 2006 10:41 pm
Forum: madKernel
Topic: NamedBuffer on WinXP/64
Replies: 2
Views: 7189

NamedBuffer on WinXP/64

I have two Delphi applicactions (32 bits) running on WinXP/64 (or Server 2003 64bit) and I'm trying to use NAmedBuffer.

The function IsWriteAccess always returns false; is there a way around this?

--Paul