Author Topic: GDI Vertical blank and vertical retrace test  (Read 32139 times)

caballero

  • Member
  • *****
  • Posts: 2160
  • Matrix - Noah
    • abre ojos ensamblador
Re: GDI Vertical blank and vertical retrace test
« Reply #60 on: April 27, 2018, 04:23:40 AM »
Seems to work ok here the "VerticalBlank Signal" bleeps often, but the second line only from time to time.

When exit I get an error.
The logic of the error is hidden among the most unexpected lines of the program

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #61 on: April 27, 2018, 04:29:09 AM »
Hi Alfonso,
That's because there's no backbuffer.
With the backbuffer it's without flickering. Have done this already.
What error do you have when you exit the application?
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 2160
  • Matrix - Noah
    • abre ojos ensamblador
Re: GDI Vertical blank and vertical retrace test
« Reply #62 on: April 27, 2018, 04:42:40 AM »
No message, just the next window
The logic of the error is hidden among the most unexpected lines of the program

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #63 on: April 27, 2018, 04:49:13 AM »
Jochen found the bug, I hope..
I had a quick look, spotted a coding error.
New attempt.
Creative coders use backward thinking techniques as a strategy.

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: GDI Vertical blank and vertical retrace test
« Reply #64 on: April 27, 2018, 04:54:49 AM »
Jochen ,I see, it's the realease of an interface.
Yes, shortly after a FreeLibrary - that was easy. Note that on Win7-64 the old and new versions run fine but choke on exit, somewhere in the wild.

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #65 on: April 27, 2018, 04:59:10 AM »
Jochen,

Same as Alfonso, think it is now fixed. ( see previous post )

EDIT: forgot the attachment.
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 2160
  • Matrix - Noah
    • abre ojos ensamblador
Re: GDI Vertical blank and vertical retrace test
« Reply #66 on: April 27, 2018, 05:05:21 AM »
Exactly the same error for version 2 and 3
The logic of the error is hidden among the most unexpected lines of the program

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #67 on: April 27, 2018, 05:12:35 AM »
Last attempt.
Else I have a better look tomorrow.
Creative coders use backward thinking techniques as a strategy.

caballero

  • Member
  • *****
  • Posts: 2160
  • Matrix - Noah
    • abre ojos ensamblador
Re: GDI Vertical blank and vertical retrace test
« Reply #68 on: April 27, 2018, 05:23:37 AM »
Sorry, the same. Have a breath :biggrin:  you are almost capable of producing more than I can prove :biggrin:
The logic of the error is hidden among the most unexpected lines of the program

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #69 on: April 27, 2018, 06:19:23 AM »
 :biggrin:
Creative coders use backward thinking techniques as a strategy.

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: GDI Vertical blank and vertical retrace test
« Reply #70 on: April 27, 2018, 06:43:55 AM »
Engine4 runs fine but crashes on exit (Win7-64). When run with Olly, it exits OK with code 12h.

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #71 on: April 27, 2018, 05:49:26 PM »
Rewrote some stuff in the interface handling.
No errors on my system.
Sometimes you think when it runs well on your own system it does also on other systems.
Turns out this isn't always the case.  :bgrin:

Hope it runs now on XP and Win7 and closes without errors.

Are there Vista users on the forum who want to test this proggy?
Creative coders use backward thinking techniques as a strategy.

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: GDI Vertical blank and vertical retrace test
« Reply #72 on: April 27, 2018, 06:57:14 PM »
It closes without problems :t

Siekmanski

  • Member
  • *****
  • Posts: 2725
Re: GDI Vertical blank and vertical retrace test
« Reply #73 on: April 27, 2018, 07:20:29 PM »
Thanks Jochen.  :biggrin:

Simple scroll example ( 1 buffer )
It scrolls smooth on my sytem even with 1 buffer.  :eusa_dance:
Creative coders use backward thinking techniques as a strategy.

jj2007

  • Member
  • *****
  • Posts: 13957
  • Assembly is fun ;-)
    • MasmBasic
Re: GDI Vertical blank and vertical retrace test
« Reply #74 on: April 27, 2018, 09:26:33 PM »
Little jumps about once per second but otherwise fine :t