Win32lib (xpmConvertToNumber(data[x]))

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

------=_NextPart_000_000B_01C04A04.722C3BC0
        boundary="----=_NextPart_001_000C_01C04A04.722C3BC0"


------=_NextPart_001_000C_01C04A04.722C3BC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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_001_000C_01C04A04.722C3BC0
        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.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<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=20
that</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the translator was crashing programs =
</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=20
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 returned=20
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_001_000C_01C04A04.722C3BC0--

------=_NextPart_000_000B_01C04A04.722C3BC0
        name="ex.err"
Content-Transfer-Encoding: quoted-printable

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

Search



Quick Links

User menu

Not signed in.

Misc Menu