fbritop Well-Known Member Licensed User Longtime User Jun 14, 2017 #481 Erel said: Press on Ctrl + P (clean project) and then run your program. It will cause the compiler to make a full deployment and will run faster in debug mode. Click to expand... Erel, I think you understood all the way around. It runs faster in debug mode than in release mode. That's the wierd thing
Erel said: Press on Ctrl + P (clean project) and then run your program. It will cause the compiler to make a full deployment and will run faster in debug mode. Click to expand... Erel, I think you understood all the way around. It runs faster in debug mode than in release mode. That's the wierd thing
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2017 #482 Please start a new thread in the questions forum.
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2017 #483 New version (1.70) was uploaded to the first post.
rscheel Well-Known Member Licensed User Longtime User Jul 17, 2017 #484 How can I configure Custom Properties by code?
Erel B4X founder Staff member Licensed User Longtime User Jul 18, 2017 #485 Please start a new thread for this question.
LucaMs Expert Licensed User Longtime User Jul 21, 2017 #486 [V. 1.70] I would add (um... I added to my version) GetDividerHeight (property or function). Also, I think that an exception handler for an "index out of bound" error should be added to: Code: 'Returns the Panel stored at the specified index. Public Sub GetPanel(Index As Int) As Panel Dim p As Panel p = panels.Get(Index) 'this is the parent panel Return p.GetView(0) End Sub otherwise the app will crash.
[V. 1.70] I would add (um... I added to my version) GetDividerHeight (property or function). Also, I think that an exception handler for an "index out of bound" error should be added to: Code: 'Returns the Panel stored at the specified index. Public Sub GetPanel(Index As Int) As Panel Dim p As Panel p = panels.Get(Index) 'this is the parent panel Return p.GetView(0) End Sub otherwise the app will crash.
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #487 LucaMs said: Also, I think that an exception handler for an "index out of bound" error should be added to: Click to expand... This is the desired result if you try to access an invalid index. If the developer would like for some reason to catch this error instead of fixing the code then it can be added in the developer's code.
LucaMs said: Also, I think that an exception handler for an "index out of bound" error should be added to: Click to expand... This is the desired result if you try to access an invalid index. If the developer would like for some reason to catch this error instead of fixing the code then it can be added in the developer's code.
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #489 This is an important concept. Library developers (CLV is a library in this regard) should avoid catching exceptions whenever possible. This is the developer responsibility to decide how to handle errors. In this case it is a programming error so it is even more clear. If a developer tried to get an invalid panel then the code should help him fix this error. Returning a different panel (maybe the last one) will lead to other errors which will be more difficult to debug.
This is an important concept. Library developers (CLV is a library in this regard) should avoid catching exceptions whenever possible. This is the developer responsibility to decide how to handle errors. In this case it is a programming error so it is even more clear. If a developer tried to get an invalid panel then the code should help him fix this error. Returning a different panel (maybe the last one) will lead to other errors which will be more difficult to debug.
ilan Expert Licensed User Longtime User Jul 23, 2017 #490 Without that error you would not get the correct result and not know why you dont get it. I agree with erel. The whole idea is not just to have an app without any crashes you want to have an app that does what you programmed it to do! Then u need to catch all errors and fix them.
Without that error you would not get the correct result and not know why you dont get it. I agree with erel. The whole idea is not just to have an app without any crashes you want to have an app that does what you programmed it to do! Then u need to catch all errors and fix them.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #491 If you declare an array with N elements and then you try to access the N+1 element you get an out of bound error. This is the behavior of the Core library, I think (or I don't know from where you get the message ). Don't you see a similitude?
If you declare an array with N elements and then you try to access the N+1 element you get an out of bound error. This is the behavior of the Core library, I think (or I don't know from where you get the message ). Don't you see a similitude?
ilan Expert Licensed User Longtime User Jul 23, 2017 #492 Open a chit chat thread and lets discuss it there. Here its not the right place.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #493 ilan said: Open a chit chat thread and lets discuss it there. Here its not the right place. Click to expand... 494 posts about CLV and this is not the right place to talk about it?
ilan said: Open a chit chat thread and lets discuss it there. Here its not the right place. Click to expand... 494 posts about CLV and this is not the right place to talk about it?
ilan Expert Licensed User Longtime User Jul 23, 2017 #494 LucaMs said: 494 posts about CLV and this is not the right place to talk about it? Click to expand... Its not related to CLV, its related to coding in general.
LucaMs said: 494 posts about CLV and this is not the right place to talk about it? Click to expand... Its not related to CLV, its related to coding in general.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #495 I do not know if it is my fault in my poor English or my natural tone (which obviously I can not reproduce) but it seems that if I dare to give a hint it is often mistaken for criticism! Mah! Critiques, among other things, help to improve.
I do not know if it is my fault in my poor English or my natural tone (which obviously I can not reproduce) but it seems that if I dare to give a hint it is often mistaken for criticism! Mah! Critiques, among other things, help to improve.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #496 ilan said: Its not related to CLV, its related to coding in general. Click to expand... #488
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #497 I don't see any problem with the posts above. It was a healthy discussion about exceptions and libraries.
I don't see any problem with the posts above. It was a healthy discussion about exceptions and libraries.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #498 Erel said: It was a healthy discussion about exceptions and libraries Click to expand... This was not my intention, my was a suggestion about the CLV. I see many similarities between an "internal" array and any exceptions and elements of the CLV. I also have some doubts about the dividerHeight: what do I do, hang and suit? P.S. I don't know how to translate "taccio e mi adeguo?" (used google translate but I don't trust much this translation )
Erel said: It was a healthy discussion about exceptions and libraries Click to expand... This was not my intention, my was a suggestion about the CLV. I see many similarities between an "internal" array and any exceptions and elements of the CLV. I also have some doubts about the dividerHeight: what do I do, hang and suit? P.S. I don't know how to translate "taccio e mi adeguo?" (used google translate but I don't trust much this translation )
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2017 #499 LucaMs said: I see many similarities between an "internal" array and any exceptions and elements of the CLV Click to expand... That's true. This is why it is good that an out of bounds error is raised when the developer tries to access an invalid panel.
LucaMs said: I see many similarities between an "internal" array and any exceptions and elements of the CLV Click to expand... That's true. This is why it is good that an out of bounds error is raised when the developer tries to access an invalid panel.
LucaMs Expert Licensed User Longtime User Jul 23, 2017 #500 Erel said: That's true. This is why it is good that an out of bounds error is raised when the developer tries to access an invalid panel. Click to expand... I think I've lost the thread, because it's exactly the message that you get: java.lang.IndexOutOfBoundsException: Invalid index 500, size is 5 I would certainly have forgotten what my question was (two days for me are too many ).
Erel said: That's true. This is why it is good that an out of bounds error is raised when the developer tries to access an invalid panel. Click to expand... I think I've lost the thread, because it's exactly the message that you get: java.lang.IndexOutOfBoundsException: Invalid index 500, size is 5 I would certainly have forgotten what my question was (two days for me are too many ).