Hi, my B4i app keeps crashing at the Designer Script when using the B4XRotary class; trying to set Left/Top/Width. If I put the Left & Top positions into my code its ok, but I cant put width there either without the app crashing; but wondering why I`m getting this problem.
I have tried a simple app with only the rotary know in it; and the designer script doesn`t crash. So i would guess the DS is conflicting with something else in my app?
Here is a small app (1 panel, with some object, no code) showing the problem I`m getting. If I uncomment the designer script for 'rotary1' the app crashes during compilation.
Hi Erel,
I see it too.
In the attached project, with the xRotaryKnob.b4xlib, it works the first time. And stopping the program and running it again, in the IDE, the program crashes with the error below:
Doesn't happen here. Tested with the project in post #7.
Where does this come from:
TestRotaryKnobProperties1 0x00000001002038a4 -[B4IViewWrapper setLeft:] + 52
TestRotaryKnobProperties1 0x00000001001fd730 -[LS_main LS_general:::] + 244
?
The only designer script that I see is the call to AutoScaleAll.
Sorry, I posted an incomplete project, I made quite some tests and posted the wrong one.
Further tests show that the problem happens when using the class file in the project instead of the b4xlib.
Attached the 'new' project.
Then, removing the xRotaryKnob module, and using the xRotaryKnob.b4xlib the problem persists.
And then, commenting these two lines in Designer Script it works again. 'xRotaryKnob1.Left = 10
'xRotaryKnob1.Top = 50
Who told you this?
The xRotaryKnob.b4xlib is cross-platform.
In your post HERE, you posted in the RotaryKnobView which is B4A only and I suggested you to look at the xRotaryKnob Class.
Who told you this?
The xRotaryKnob.b4xlib is cross-platform.
In your post HERE, you posted in the RotaryKnobView which is B4A only and I suggested you to look at the xRotaryKnob Class.
I don't think so.
The problem is that once you have used the class module, remove it and use the library, the problem persists?
That's what james_sgp is getting.
It works only when you remove the lines in the Designer Script as described in post#10.
I guess that a compiled resource was kept when you removed the module and switched to the library and caused this problem. Cleaning the project would have probably solved it.