Problem with different Ubuntu versions

Linux specific forum
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 131
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Problem with different Ubuntu versions

Post by langinagel »

Howdy,
I experienced Problems in running a program under Ubuntu 14.04 / Lubuntu 14.04 / Ubuntu 10.04 / all 32bit.

A lot of stringgadgets are setup and expected to be filled with numbers after pressing the Start button.
But:
Everything runs fine under Ubuntu 14.04
Program stucks after pressing the Start button, no entry possible in Stringgadgets under Lubuntu 14.04
Same problem under Ubuntu 10.14, but runs properly after upgrading to Ubuntu 12.04.

The stringgadgets get a different backgound color, depending on their content. After pressing Start they are all red.
Here is the loop:

Code: Select all

                ....GUI setup...with a lot of stringgadgets

                button = ButtonGadget(#PB_Any, 470, 200, 50,30, "Start")
                textwrite = 0
                start = 0
                Repeat 
                        
                        Event = WaitWindowEvent()
                        
                        If EventGadget() = button
                                los = Date()
                                start = 1
                                loeschen()
                                DisableGadget(button, 1)
                        EndIf
                        If start = 1
                                ok = 0
                                For ii = 0 To 99
                                        i = Int(ii / 10) +1
                                        k = Mod(ii,10) +1
                                        If Val(GetGadgetText(ii)) <> i * k 
                                                SetGadgetColor(ii,  #PB_Gadget_BackColor, RGB (255,0,0)) ; nicht ok
                                        Else
                                                SetGadgetColor(ii,  #PB_Gadget_BackColor, RGB (255,255,255)) ; ok
                                                ok = ok + 1
                                        EndIf
                                Next
                                If ok = 100 And textwrite = 0
                                        ende = Date()
                                        zeit$ = FormatDate("%mm:%ss", ende -los )
                                        TextGadget(#PB_Any, 470, 250, 80, 130, "Du brauchtest " + zeit$ + " Minuten.")
                                        textwrite = 1
                                EndIf
                        EndIf
                        
                Until Event = #PB_Event_CloseWindow
Ok, Lubuntu 14.04 misses libgnomeprintui-2.0 library. But Ubuntu 10.04 had it.

Could anyone please give me a hint what to change?
By the way: PB compiler 5.22 LTS was used.
https://www.doerpsoft.org

Boost. Work. Efficiency.
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 131
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: Problem with different Ubuntu versions

Post by langinagel »

Update/solution:
The unusual behavior is just a very BIIIG delay, respective a processor issue.
The Lubuntu version runs on a netbook with ATOM processor, thus a delay of about (or more than) 10 seconds happens until the Stringgadgets can be used/filled.
Then all runs as expected (when human reaction time is settled on "turtle"-mode).

And no, this was not just the behavior of the DEBUG-version. Both versions, debug and non-debug, have about the same delay.

Talking about sleepware...software to get into dreams.

Greetings
LN
https://www.doerpsoft.org

Boost. Work. Efficiency.
Post Reply