1. win32lib v0.60.2 available

See

  http://www.users.bigpond.com/ddparnell/euphoria/euphoria.htm

for details.

-- 
Derek Parnell
Melbourne, Australia

new topic     » topic index » view message » categorize

2. Re: win32lib v0.60.2 available

Derek Parnell wrote:

>posted by: Derek Parnell <ddparnell at bigpond.com>
>
>See
>
>  http://www.users.bigpond.com/ddparnell/euphoria/euphoria.htm
>
>  
I found some  bugs in this release:

1. - Derek's Debug :)

diff -ur old\rttext.e new\rttext.e
--- old\rttext.e      Wed Aug 11 17:13:48 2004
+++ new\rttext.e       Wed Aug 11 13:29:22 2004
@@ -156,5 +156,3 @@
     end for
     return lMsg
 end function
-
-puts(1, FormatMsg("%1 %3, %2", {"Mr", "Derek", "Parnell"}))

2. - extractIcon(string) is broken

diff -ur old\win32lib.ew new\win32lib.ew
--- old\win32lib.ew   Wed Aug 11 10:39:50 2004
+++ new\win32lib.ew    Wed Aug 11 13:40:32 2004
@@ -14277,6 +14277,8 @@
             end if
             lIdx = Filename[2]-1
             Filename = Filename[1]
+        else
+            lType = 1
         end if
     end if
     lBufferL = w32acquire_mem(0, 8)

There are others, but I don't have the time to examine them right now.
It's a machine exception and weird window behaviour.

And, hello again, Euphoria!

    Martin

new topic     » goto parent     » topic index » view message » categorize

3. Re: win32lib v0.60.2 available

Martin Stachon wrote:
> 
> Derek Parnell wrote:
> 
> >posted by: Derek Parnell <ddparnell at bigpond.com>
> >
> >See
> >
> >  <a
> >  href="http://www.users.bigpond.com/ddparnell/euphoria/euphoria.htm">http://www.users.bigpond.com/ddparnell/euphoria/euphoria.htm</a>
> >
> >  
> I found some  bugs in this release:
> 
> 1. - Derek's Debug :)
> 
> diff -ur old\rttext.e new\rttext.e
> --- old\rttext.e      Wed Aug 11 17:13:48 2004
> +++ new\rttext.e       Wed Aug 11 13:29:22 2004
> @@ -156,5 +156,3 @@
>      end for
>      return lMsg
>  end function
> -
> -puts(1, FormatMsg("%1 %3, %2", {"Mr", "Derek", "Parnell"}))

This is embarassing. I tried a last minute test and forgot to remove the code.

I've fixed this on the website now.

> 2. - extractIcon(string) is broken
> 
> diff -ur old\win32lib.ew new\win32lib.ew
> --- old\win32lib.ew   Wed Aug 11 10:39:50 2004
> +++ new\win32lib.ew    Wed Aug 11 13:40:32 2004
> @@ -14277,6 +14277,8 @@
>              end if
>              lIdx = Filename[2]-1
>              Filename = Filename[1]
> +        else
> +            lType = 1
>          end if
>      end if
>      lBufferL = w32acquire_mem(0, 8)

Doesn't fail for me. What is your test code?

> There are others, but I don't have the time to examine them right now.
> It's a machine exception and weird window behaviour.
> 
> And, hello again, Euphoria!

Welcome, and please pull it to pieces for us.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

4. Re: win32lib v0.60.2 available

Martin Stachon wrote:
> 
> Derek Parnell wrote:
> 

[snip]

> 2. - extractIcon(string) is broken
> 
> diff -ur old\win32lib.ew new\win32lib.ew
> --- old\win32lib.ew   Wed Aug 11 10:39:50 2004
> +++ new\win32lib.ew    Wed Aug 11 13:40:32 2004
> @@ -14277,6 +14277,8 @@
>              end if
>              lIdx = Filename[2]-1
>              Filename = Filename[1]
> +        else
> +            lType = 1
>          end if
>      end if
>      lBufferL = w32acquire_mem(0, 8)
> 

I've posted a patch on the web site.

   http://www.users.bigpond.com/ddparnell/euphoria/win32lib_patches.htm

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view message » categorize

5. Re: win32lib v0.60.2 available

I just uploaded an updated version of my Euphoria syntax-file for TextPad to my
website. The names of new routines and constants in Win32Lib 0.60.2 have been
added.
Download from http://users.telenet.be/tommycarlier/eu/euphoria.syn

--
tommy online: http://users.telenet.be/tommycarlier
Euphoria Message Board: http://uboard.proboards32.com

new topic     » goto parent     » topic index » view message » categorize

6. Re: win32lib v0.60.2 available

Derek Parnell wrote:
> 
> Martin Stachon wrote:
> > 
> > 2. - extractIcon(string) is broken
> > 
> > diff -ur old\win32lib.ew new\win32lib.ew
> > --- old\win32lib.ew   Wed Aug 11 10:39:50 2004
> > +++ new\win32lib.ew    Wed Aug 11 13:40:32 2004
> > @@ -14277,6 +14277,8 @@
> >              end if
> >              lIdx = Filename[2]-1
> >              Filename = Filename[1]
> > +        else
> > +            lType = 1
> >          end if
> >      end if
> >      lBufferL = w32acquire_mem(0, 8)
> 
> Doesn't fail for me. What is your test code?
> 

Here you go:

include win32lib.ew

? extractIcon("euphoria.ico")
? extractIcon("not a real icon")


This displays two bugs.  The first is that you never set lType's value
if Filename is a simple string--that's what Martin was referring to.
The second shows that (even though it's documented as returning a UINT),
it returns -1 if you pass a bad filename (at least it does here, on Win2K).
This should either be corrected in w32shell.ew (define_c_func) or lCnt 
should be changed to an atom to prevent an integer overflow.

How you choose to report the error is up to you.  In the past, this seems
to have passed the result of ExtractIcon--which was zero, so we had a
silent failure that wouldn't cause any problems so long as other, valid,
icons were loaded (I found this by trying to load a nonexistent icon in
EDB--should switch over to XPMs like I have with wxEDB, but that's another
day's fight).  Now you're using ExtractIconEx, which is why, I suppose
we're having these new bugs.

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

7. Re: win32lib v0.60.2 available

Also, changes.htm has 0 bytes in the zip file (so the old change log is 
left in my DOCS folder).

Matt Lewis

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu