Re: Win32lib (xpmConvertToNumber(data[x]))
- Posted by Derek Parnell <dparnell at BIGPOND.NET.AU> Nov 09, 2000
- 380 views
------=_NextPart_000_0097_01C04AA1.133B0900 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Well, I've just downloaded the latest IDE and compiled it with Borland = 5.5 (using win32lib v0.54.3) and it still works okay. So I don't know = what the problem is with the set up you are using. ------ 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_0097_01C04AA1.133B0900 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>Well, I've just downloaded the latest = IDE and=20 compiled it with Borland 5.5 (using win32lib v0.54.3) and it still works = okay.=20 So I don't know what the problem is with the set up you are = using.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <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> </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> </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> </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> </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> </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> </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> </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 the createDIB facility is = doing to the=20 ------=_NextPart_000_0097_01C04AA1.133B0900--