[Done] PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

All bugs related to new C backend
box_80
Enthusiast
Enthusiast
Posts: 106
Joined: Mon Sep 03, 2012 8:52 pm

[Done] PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by box_80 »

Code: Select all

;
; ------------------------------------------------------------
;
;   PureBasic - Image example file
;
;    (c) Fantaisie Software
;
; ------------------------------------------------------------
;


ShowWatchlist()

;---------------------------
num1.i = 10
;----------------------------

If OpenWindow(0, 100, 100, 500, 300, "PureBasic - Image")

  If CreateImage(0, 255, 255)

    StartDrawing(ImageOutput(0))
    
    For k=0 To 255
      FrontColor(RGB(k,0, k))  ; a rainbow, from black to pink
      Line(0, k, 255, 1)
    Next

    DrawingMode(#PB_2DDrawing_Transparent)
    FrontColor(RGB(255,255,255)) ; print the text to white !
    DrawText(40, 50, "An image easily created !")

    StopDrawing() ; This is absolutely needed when the drawing operations are finished !!! Never forget it !
    
  EndIf
  
  CopyImage(0, 1)
  ResizeImage(1, 100, 100)
  
  GrabImage(0, 2, 100, 60, 150, 40)

        
  Repeat
    Event = WaitWindowEvent()
    
    If Event = #PB_Event_Repaint
      StartDrawing(WindowOutput(0))
        DrawImage(ImageID(0), 20, 10)
        DrawImage(ImageID(1), 320, 80)
        DrawImage(ImageID(2), 320, 200)
      StopDrawing()    
    EndIf
    
  Until Event = #PB_Event_CloseWindow  ; If the user has pressed on the close button
  
EndIf

End   ; All the opened windows are closed automatically by PureBasic

Around line 15 in the editor a variable named num1 don't update in the debugger ShowWatchlist after repeated restarting the program. This only happen in the C backend, other backend work fine.
User avatar
Blue
Enthusiast
Enthusiast
Posts: 738
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by Blue »

I have tried, and tried and tried again... but the bug you report here never manifested itself.
Instead of the value 10, I assigned Date() to num, so that some change could be seen between calls to the "program". I also automated the restart of the code, but no matter how many times I ran it, PB didn't miss a beat. The variable num always updated (as expected and correctly) with the C backend compiler.

Any more info on the circumstances in which you came across this problem ?
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by Fred »

Seems to work fine as well here, can anybody else confirm ?
box_80
Enthusiast
Enthusiast
Posts: 106
Joined: Mon Sep 03, 2012 8:52 pm

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by box_80 »

It happen using PureBasic 6.00 Alpha 3 - C Backend(window 64x). I wonder if it a problem with windows 7 64x.
User avatar
Blue
Enthusiast
Enthusiast
Posts: 738
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by Blue »

Well, there you are (I think) : you say it happens using an early version of the C Backend compiler. I’ve run multiple tests with the latest beta (7) and everything appeared to be fine.

Suggestion : Update your PB to the latest version. You probably came across a glitch that disappeared « au fil des versions »…
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by Fred »

:lol:
BarryG
Addict
Addict
Posts: 2190
Joined: Thu Apr 18, 2019 8:17 am

Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by BarryG »

box_80 wrote: Mon May 16, 2022 10:40 pmIt happen using PureBasic 6.00 Alpha 3
Rule #1 in red -> https://www.purebasic.fr/english/viewtopic.php?t=4701
box_80
Enthusiast
Enthusiast
Posts: 106
Joined: Mon Sep 03, 2012 8:52 pm

(no bug) Re: PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by box_80 »

Got some stuff mix up and made a mistake. Thanks for correcting that and sorry for the mistake. :oops:
Fred
Administrator
Administrator
Posts: 14732
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [Done] PB 6.00 Beta 7(Windows) - ShowWatchlist() don't update after repeated use

Post by Fred »

No biggie
Post Reply