Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error - read or write protected memory in C dll project

4 views
Skip to first unread message

Valli

unread,
May 14, 2009, 11:22:28 AM5/14/09
to
Hi,

I have written a C dll project that supports LZO algorithm(lzo.lib). This
dll is called inside a VB.net project.
The dll starts executing. Assignment statements works fine.


#define IN_LEN (1024L)

lzo_byte *in;
lzo_uint in_len;

in_len = IN_LEN;

lzo_memset(in, 0, in_len);

the statement
lzo_memset(in, 0, in_len);

throws error "Attempt to read or write protected memory"

Whats is the problem in my code?
Can anyone help me on this

--
Thanks & Regards
Valli


0 new messages