P
Paul Ferrill
Has anyone successfully used the LZO compression utilities from
VB.NET? I'm trying to call them using DLLIMPORT and Declare but so
far haven't been able to get it to work.
When I use:
Declare Auto Function lzo1x_compress Lib "lzo.dll" (ByRef InBuff As
Integer, _
ByRef OutLen As Integer, _
ByRef OutBuff As Integer, _
ByRef InLen As Integer, _
ByVal iDum As Integer) As Integer
and then in the code do a:
Dim i, r, x, y As Integer
Dim ibuff(1024), obuff(2048), wrkmem(8192) As Integer
For i = 1 To 1024
ibuff(i) = Rnd()
Next
x = 1024
y = 1024
r = lzo1x_1_compress(ibuff(1), x, obuff(1), y, wrkmem(1))
Debug.WriteLine("Result " & r)
I get a System.NullReferencException occurred message.
tnx
VB.NET? I'm trying to call them using DLLIMPORT and Declare but so
far haven't been able to get it to work.
When I use:
Declare Auto Function lzo1x_compress Lib "lzo.dll" (ByRef InBuff As
Integer, _
ByRef OutLen As Integer, _
ByRef OutBuff As Integer, _
ByRef InLen As Integer, _
ByVal iDum As Integer) As Integer
and then in the code do a:
Dim i, r, x, y As Integer
Dim ibuff(1024), obuff(2048), wrkmem(8192) As Integer
For i = 1 To 1024
ibuff(i) = Rnd()
Next
x = 1024
y = 1024
r = lzo1x_1_compress(ibuff(1), x, obuff(1), y, wrkmem(1))
Debug.WriteLine("Result " & r)
I get a System.NullReferencException occurred message.
tnx