Re: Win32Lib & bitBlt & error 436

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

------=_NextPart_000_0043_01C08012.B965D840
        charset="iso-8859-1"

I found the problem,=20

I was transBlt the same image I bitBlt earlier.

There is a strange effect after I transBlt the image back to the Window,
the image appears fine but just to the right and bottom of the image
there seems to be some scrambled pixels.

I'll keep at it to try and find the problem hopefully it's just another =
type-o

Thanks Derek

eum
                        =20
----- Original Message -----=20
  From: Derek Parnell=20
  To: EUPHORIA at LISTSERV.MUOHIO.EDU=20
  Sent: Tuesday, January 16, 2001 22:25
  Subject: Re: Win32Lib & bitBlt & error 436


  Hi,
  I suspect that the error is NOT coming from the code snippet you =
supplied. Firstly because that message is issued by the getRect() =
function which is not invoked by the code snippet (directly or =
indirectly), and secondly because I executed your code and it worked =
just fine.

  This warning message (#436) is displayed with a dialog box that allows =
you to ignore it or abort. When you abort, you should still get a ex.err =
file created that you can use to track down from where the getRect() =
function was invoked. You can send me the ex.err file for me to analyse =
if you like.

  -----
  cheers,
  Derek Parnell
  -----Original Message-----
  From: Euphoria Programming for MS-DOS =
[mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Euman
  Sent: Wednesday, January 17, 2001 2:06 PM
  To: EUPHORIA at LISTSERV.MUOHIO.EDU
  Subject: Win32Lib & bitBlt & error 436



    Hello Win32lib Coders

    Can someone explain why I get an error with the following Code?

    </snip>

    constant=20
    ShapedWin =3D create( Window, "Window", 0, centerX(530), =
centerY(420), 530, 400, 0 )

    integer pbutup_bm
    pbutup_bm =3D create( Pixmap, "", 0, 348, 90, 448,  120, 0 )=20
        =20
     bitBlt( pbutup_bm,
                  0, 0,     =20
                  ShapedWin,=20
                  348, 90,   =20
                  100, 30, =20
                  SRCCOPY )=20



    Error 436

    getRect:GetObject for bitmap failed

------=_NextPart_000_0043_01C08012.B965D840
        charset="iso-8859-1"

<!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.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I found the problem, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I was transBlt the same image I bitBlt=20
earlier.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>There is a strange effect after I =
transBlt the=20
image back to the Window,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the image appears fine but just to the =
right and=20
bottom of the image</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>there seems to be some scrambled=20
pixels.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'll keep at it to try and find the =
problem=20
hopefully it's just another type-o</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks Derek</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>eum</FONT></DIV>
<DIV><FONT face=3DArial=20
;&nbsp;=20
<BR></FONT>----- Original Message ----- </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=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dderekp at SOLACE.COM.AU =
href=3D"mailto:derekp at SOLACE.COM.AU">Derek=20
  Parnell</A> </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> Tuesday, January 16, 2001 =

  22:25</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Win32Lib &amp; =
bitBlt &amp;=20
  error 436</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D567422003-17012001>Hi,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D567422003-17012001>I=20
  suspect that the error is NOT coming from the code snippet you =
supplied.=20
  Firstly because that message is issued by the getRect() function which =
is not=20
  invoked by the code snippet (directly or indirectly), and secondly =
because I=20
  executed your code and it worked just fine.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
  class=3D567422003-17012001></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D567422003-17012001>This=20
  warning message (#436) is displayed with a dialog box that allows you =
to=20
  ignore it or abort. When you abort, you should still get a ex.err file =
created=20
  that you can use to track down from where the getRect() function was =
invoked.=20
  You can send me the ex.err file for me to analyse if you=20
  like.</SPAN></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <P><FONT size=3D2>-----<BR>cheers,<BR>Derek Parnell<BR></FONT><FONT=20
  face=3D"Times New Roman" size=3D2>-----Original =
Message-----<BR><B>From:</B>=20
  Euphoria Programming for MS-DOS =
[mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]<B>On=20
  Behalf Of</B> Euman<BR><B>Sent:</B> Wednesday, January 17, 2001 2:06=20
  PM<BR><B>To:</B> EUPHORIA at LISTSERV.MUOHIO.EDU<BR><B>Subject:</B> =
Win32Lib=20
  &amp; bitBlt &amp; error 436<BR><BR></P>
  <BLOCKQUOTE=20
  style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px"></FONT>
    <DIV><FONT face=3DArial size=3D2>Hello Win32lib Coders</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Can someone explain why I get an =
error with the=20
    following Code?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>&lt;/snip&gt;</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>constant </FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>ShapedWin =3D create( Window, =
"Window", 0,=20
    centerX(530), centerY(420), 530, 400, 0 )</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>integer pbutup_bm</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>pbutup_bm =3D create( Pixmap, "", =
0, 348, 90,=20
    448,&nbsp; 120, 0 ) <BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;bitBlt(=20
    =
;&nbsp;&nbsp;&nbsp;=20
    0,=20
    =
    =
;&nbsp;&nbsp;&nbsp;&nbsp;=20
    348,=20
    =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    100,=20
    =
30,&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
    SRCCOPY )&nbsp;</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Error 436</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>getRect:GetObject for bitmap=20

------=_NextPart_000_0043_01C08012.B965D840--

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

Search



Quick Links

User menu

Not signed in.

Misc Menu