Screen Object Bug in SP4


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Screen Object Bug in SP4

  1. #1
    Jim Pragit Guest

    Screen Object Bug in SP4


    A few weeks ago I posted a message here about a new bug in the Screen object
    that appears to have been introduced in Service Pack 4. This bug causes
    the Screen object to report incorrect values for Width and/or Height. For
    example:

    ?screen.Width
    10368
    ?screen.Height
    10368

    Note that the Screen object is returning the exact same number for both Width
    and Height. Needless to say, I do *not* have a perfectly square monitor
    so these values are obviously wrong.

    At the time, the bug appeared to be intermittant; I wasn't sure why it happened
    sometimes and sometimes it didn't. After talking it over with another programmer,
    I think I finally figured it out. The problem seems to occur whenever the
    screen resolution changes.

    I've submitted this bug to Microsoft, however, they are incredibly unresponsive
    when it comes to fixing or even acknowledging bugs in their software. If
    you can reproduce this bug, feel free to report it as well.

    http://support.microsoft.com/support/feedback/

    - Jim


  2. #2
    Ron Phillips Guest

    Re: Screen Object Bug in SP4


    I can't duplicate your bug on either of my systems.. very odd I'd say
    that you're getting those values. I'm running VB6 Service Pack 4
    Enterprise edition.

    Ron

    On 14 Dec 2000 16:47:58 -0800, "Jim Pragit" <NoSpam@NoSpam.com> wrote:
    >
    >A few weeks ago I posted a message here about a new bug in the Screen object
    >that appears to have been introduced in Service Pack 4. This bug causes
    >the Screen object to report incorrect values for Width and/or Height. For
    >example:
    >
    >?screen.Width
    > 10368
    >?screen.Height
    > 10368
    >
    >Note that the Screen object is returning the exact same number for both Width
    >and Height. Needless to say, I do *not* have a perfectly square monitor
    >so these values are obviously wrong.
    >
    >At the time, the bug appeared to be intermittant; I wasn't sure why it happened
    >sometimes and sometimes it didn't. After talking it over with another programmer,
    >I think I finally figured it out. The problem seems to occur whenever the
    >screen resolution changes.
    >
    >I've submitted this bug to Microsoft, however, they are incredibly unresponsive
    >when it comes to fixing or even acknowledging bugs in their software. If
    >you can reproduce this bug, feel free to report it as well.
    >
    >http://support.microsoft.com/support/feedback/
    >
    >- Jim
    >



  3. #3
    Kevin Guest

    Re: Screen Object Bug in SP4


    Microsoft Article ID: Q253940 dated March 31,2000
    discusses something similar (width=height) but only in the context of a screen
    resolution resize.

    URL below.
    http://support.microsoft.com/support.../Q253/9/40.ASP

    Their suggested work around is to use the API
    GetDeviceCaps. The article provides an example.

    Hope this helps.

    Kevin


    "Jim Pragit" <NoSpam@NoSpam.com> wrote:
    >
    >A few weeks ago I posted a message here about a new bug in the Screen object
    >that appears to have been introduced in Service Pack 4. This bug causes
    >the Screen object to report incorrect values for Width and/or Height. For
    >example:
    >
    >?screen.Width
    > 10368
    >?screen.Height
    > 10368
    >
    >Note that the Screen object is returning the exact same number for both

    Width
    >and Height. Needless to say, I do *not* have a perfectly square monitor
    >so these values are obviously wrong.
    >
    >At the time, the bug appeared to be intermittant; I wasn't sure why it happened
    >sometimes and sometimes it didn't. After talking it over with another programmer,
    >I think I finally figured it out. The problem seems to occur whenever the
    >screen resolution changes.
    >
    >I've submitted this bug to Microsoft, however, they are incredibly unresponsive
    >when it comes to fixing or even acknowledging bugs in their software. If
    >you can reproduce this bug, feel free to report it as well.
    >
    >http://support.microsoft.com/support/feedback/
    >
    >- Jim
    >



  4. #4
    Jim Pragit Guest

    Re: Screen Object Bug in SP4


    Interesting, the article seems to address the same issue but pre-dates Service
    Pack 4. It could be that this bug was introduced in 6.0 and something in
    SP4 exacerbated the problem.

    - Jim

    "Kevin" <KDM@worldnet.net> wrote:
    >
    >Microsoft Article ID: Q253940 dated March 31,2000
    >discusses something similar (width=height) but only in the context of a

    screen
    >resolution resize.
    >
    >URL below.
    >http://support.microsoft.com/support.../Q253/9/40.ASP
    >
    >Their suggested work around is to use the API
    >GetDeviceCaps. The article provides an example.
    >
    >Hope this helps.
    >
    >Kevin
    >
    >
    >"Jim Pragit" <NoSpam@NoSpam.com> wrote:
    >>
    >>A few weeks ago I posted a message here about a new bug in the Screen object
    >>that appears to have been introduced in Service Pack 4. This bug causes
    >>the Screen object to report incorrect values for Width and/or Height.

    For
    >>example:
    >>
    >>?screen.Width
    >> 10368
    >>?screen.Height
    >> 10368
    >>
    >>Note that the Screen object is returning the exact same number for both

    >Width
    >>and Height. Needless to say, I do *not* have a perfectly square monitor
    >>so these values are obviously wrong.
    >>
    >>At the time, the bug appeared to be intermittant; I wasn't sure why it

    happened
    >>sometimes and sometimes it didn't. After talking it over with another

    programmer,
    >>I think I finally figured it out. The problem seems to occur whenever

    the
    >>screen resolution changes.
    >>
    >>I've submitted this bug to Microsoft, however, they are incredibly unresponsive
    >>when it comes to fixing or even acknowledging bugs in their software.

    If
    >>you can reproduce this bug, feel free to report it as well.
    >>
    >>http://support.microsoft.com/support/feedback/
    >>
    >>- Jim
    >>

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center