www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - zlib problems (dmd 0.111)

reply "Ivan Senji" <ivan.senji public.srce.hr> writes:
Anybody else having problems with zlib?
When i call compress i get acces violation, and the
code worked in 0.109.
Jan 26 2005
next sibling parent reply zwang <nehzgnaw gmail.com> writes:
Ivan Senji wrote:
 Anybody else having problems with zlib?
 When i call compress i get acces violation, and the
 code worked in 0.109.
 
 
Any code snippets?
Jan 26 2005
parent "Ivan Senji" <ivan.senji public.srce.hr> writes:
"zwang" <nehzgnaw gmail.com> wrote in message
news:ct7set$1b7k$1 digitaldaemon.com...
 Ivan Senji wrote:
 Anybody else having problems with zlib?
 When i call compress i get acces violation, and the
 code worked in 0.109.
Any code snippets?
Not at the moment. I returned to 0.109 to be able to continue programming, but in the evening i'll try to come up with a small example.
Jan 26 2005
prev sibling parent reply "Ivan Senji" <ivan.senji public.srce.hr> writes:
"Ivan Senji" <ivan.senji public.srce.hr> wrote in message
news:ct7k7m$12hk$1 digitaldaemon.com...
 Anybody else having problems with zlib?
 When i call compress i get acces violation, and the
 code worked in 0.109.
It turns our it isn't zlib's fault but MemoryStream's: This is what i get: <code> import std.stdio; import std.stream; int main(char[][]args) { MemoryStream ms = new MemoryStream; writefln(ms.data.length); ms.writefln(""); writefln(ms.data.length); } </code> And this code prints: 7473032 19013252 And this is obviously a wrong length and a reason i was getting acces violation.
Jan 29 2005
parent reply zwang <nehzgnaw gmail.com> writes:
Ivan Senji wrote:
 "Ivan Senji" <ivan.senji public.srce.hr> wrote in message
 news:ct7k7m$12hk$1 digitaldaemon.com...
 
Anybody else having problems with zlib?
When i call compress i get acces violation, and the
code worked in 0.109.
It turns our it isn't zlib's fault but MemoryStream's: This is what i get: <code> import std.stdio; import std.stream; int main(char[][]args) { MemoryStream ms = new MemoryStream; writefln(ms.data.length); ms.writefln(""); writefln(ms.data.length); } </code> And this code prints: 7473032 19013252 And this is obviously a wrong length and a reason i was getting acces violation.
I'm using dmd 0.112 on Windows, and the code prints 0 and 2 as expected.
Jan 29 2005
parent "Ivan Senji" <ivan.senji public.srce.hr> writes:
"zwang" <nehzgnaw gmail.com> wrote in message
news:ctggvv$312j$1 digitaldaemon.com...
 Ivan Senji wrote:
<snip>
 And this is obviously a wrong length and a reason i was
 getting acces violation.
I'm using dmd 0.112 on Windows, and the code prints 0 and 2 as expected.
Thanks for trying it. I guess i'm going to have to download 0.112 but is strange how it works on 0.109 and 0.112 and not on 0.111.
Jan 29 2005