Re: Win32lib (xpmConvertToNumber(data[x]))

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_007E_01C04A9E.CCA7A180
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Can't duplicate the problem. I'm using win32lib v0.54.3 and IDE v0.9k.4

The bitmaps come up perfectly.=20

Does the problem you get occur in the interpreted IDE?

Does the problem you get occur in the compiled IDE?

Here is the routine you suspect is wrong.=20
  -------------------------
  function xpmConvertToNumber( sequence s )
      s =3D value( s )
      if s[1] !=3D GET_SUCCESS then =20
          xpmErrFlag =3D 1
      end if
      return s[2]
  end function      =20

If you are having problems with the compiled version, I'd suspect that =
the value() function is a problem.=20
------
Derek Parnell
Melbourne, Australia
(Vote [1] The Cheshire Cat for Internet Mascot)

  ----- Original Message -----=20
  From: Euman=20
  To: EUPHORIA at LISTSERV.MUOHIO.EDU=20
  Sent: Thursday, November 09, 2000 8:20 PM
  Subject: Win32lib (xpmConvertToNumber(data[x]))


  Hi Win32Lib guru's

  I have become major frustrated as I'm sure Robert is
  given the fact that I presented ideas that
  the translator was crashing programs=20
  when in fact win32lib seems to be the culprit.

  I used Judith's IDE with Win32Lib v.54=20
  PointerXpm is the first .xpm called

  First off, the .xpm is being read into the program

  Why is this happening that
  euBmp ends up:

  euBmp =3D {{},{}}
  pal=3DeuBmp[1]
  pixels=3DeuBmp[2]
  w=3Dlength(pixels[1]) -- crashes here obviously

  I think the use of xpmConvertToNumber(data[x]) is Botched
  because data[x] is already a number and is returned as 0
  just a guess_ta_mate of course......

  I'm not a win32lib guru so could someone
  look at the attached ex.err file and tell me
  what the createDIB facility is doing to the .xpm

------=_NextPart_000_007E_01C04A9E.CCA7A180
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Can't duplicate the problem. I'm using =
win32lib=20
v0.54.3 and IDE v0.9k.4</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The bitmaps come up perfectly. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does the problem you get occur in the =
interpreted=20
IDE?</FONT></DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does the problem you get occur in the =
compiled=20
IDE?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is the routine you suspect is wrong. </DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3D"Courier New">-------------------------</FONT></DIV>
  <DIV><FONT face=3D"Courier New">function xpmConvertToNumber( sequence =
s=20
  )</FONT></DIV>
  <DIV><FONT face=3D"Courier New">&nbsp;&nbsp;&nbsp; s =3D value( s=20
  )<BR>&nbsp;&nbsp;&nbsp; if s[1] !=3D GET_SUCCESS=20
  then&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
xpmErrFlag =3D=20
  1<BR>&nbsp;&nbsp;&nbsp; end if<BR>&nbsp;&nbsp;&nbsp; return =
s[2]<BR>end=20
  function&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
<BR></FONT></DIV></BLOCKQUOTE>
<DIV dir=3Dltr>If you are having problems with the compiled version, I'd =
suspect=20
that the value() function is a problem. </DIV></FONT>
<DIV>------<BR>Derek Parnell<BR>Melbourne, Australia<BR>(Vote [1] The =
Cheshire=20
Cat for Internet Mascot)<BR></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Deuman at BELLSOUTH.NET =
href=3D"mailto:euman at BELLSOUTH.NET">Euman</A>=20
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DEUPHORIA at LISTSERV.MUOHIO.EDU=20
  =
</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, November 09, =
2000 8:20=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Win32lib=20
  (xpmConvertToNumber(data[x]))</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi Win32Lib guru's</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have become major frustrated as I'm =
sure Robert=20
  is</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>given the fact that I presented ideas =

  that</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>the translator was crashing programs=20
</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>when in fact </FONT><FONT =
face=3DArial=20
  size=3D2>win32lib seems to be the culprit.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I used Judith's IDE with Win32Lib =
v.54=20
  </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>PointerXpm is the first .xpm =
called</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>First off, the .xpm is being read =
into the=20
  program</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Why is this happening =
that</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>euBmp ends up:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>euBmp =3D {{},{}}</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>pal=3DeuBmp[1]</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>pixels=3DeuBmp[2]</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>w=3Dlength(pixels[1]) -- crashes here =

  obviously</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I think the use of =
xpmConvertToNumber(data[x]) is=20
  Botched</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>because data[x] is already a number =
and is=20
  returned as 0</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>just a guess_ta_mate of =
course......</FONT></DIV>
  <DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I'm not a win32lib guru so could=20
  someone</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>look at the attached ex.err file and =
tell=20
  me</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>what&nbsp;the createDIB facility is =
doing to the=20

------=_NextPart_000_007E_01C04A9E.CCA7A180--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu