Packer on MacOS X.4 does not work

Mac OSX specific forum
hilpert
New User
New User
Posts: 1
Joined: Mon Sep 07, 2009 2:16 pm

Packer on MacOS X.4 does not work

Post by hilpert »

Hallo,
with MacOS 10.4.11 on MacMini PPC G4 and PB 4.31 and installed XCODE 2.5
the JCalG1-Packer does not work, instead producing blz1 followed by zeros
as the following example below shows : - What is wrong here ? Who can help ? - Hilpert
;
;
A$=A$+"with MacOS 10.4.11 on MacMini PPC G4 and PB 4.31 and installed XCODE 2.5"+LF$
A$=A$+"the JCalG1-Packer does not work, instead producing blz1 followed by zeros "
A$=A$+"as the following example shows :"
len=StringByteLength(A$):usiz=Len(A$)
*MEM1=AllocateMemory(usiz+8)
*MEM2=AllocateMemory(usiz+32)
*ptr=*MEM1:CopyMemoryString(A$,@*ptr):*ptr=*MEM1
res=PackMemory(*MEM1,*MEM2,usiz):B$="result equals zero here on my MiniMac but should'nt !"
MessageRequester(B$,Str(res))
MessageRequester("Text in SourceMemory",PeekS(*MEM1))
PokeB(*MEM2+usiz+2,0)
For i=0 To usiz:If PeekB(*MEM2+i)=0:PokeB(*MEM2+i,$2E):EndIf:Next i
MessageRequester("Data in DestinationMemory",PeekS(*MEM2))
END