Android Question Custom Dialog with BBCodeView

james_sgp

Active Member
Licensed User
Longtime User
I`ve trying to use a (B4X) custom dialog which has a BBCodeView on it layout for the message text it works fine in B4a but i get an error with the line that sets the 'textengine' for the bbcodeview in B4i?

I have also tried AS MsgBox/Dialog and i get the same thing there when trying to oen the dialog.

Desperately looin for a B4X solutions for this...
 

james_sgp

Active Member
Licensed User
Longtime User
Here is the error:
Application_Start
Application_Active
SignalHandler 11
Error occurred on line: 89 (BBLabel)
Signal - 11
Stack Trace: (
"0 AS MsgBox Example SignalHandler + 108",
"1 libsystem_platform.dylib 0x00000001eaf53834 E29C0EE4-8118-3A92-BFF8-1C343F8885AD + 22580",
"2 AS MsgBox Example -[b4i_bblabel _parseanddraw:] + 480",
"3 AS MsgBox Example -[b4i_bblabel _settext::] + 472",
"4 AS MsgBox Example -[b4i_bblabel _settextengine::] + 552",
"5 CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 203908",
"6 CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 202512",
"7 AS MsgBox Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1352",
"8 AS MsgBox Example -[B4IShell runMethod:] + 320",
"9 AS MsgBox Example -[B4IShell raiseEventImpl:method:args::] + 928"
)

For soe reason i am not able to aste the code into the message it gives an error so i have attached it.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
You are posting an issue related to b4i in the b4a forum... this sill make it harder for b4i users to find this and try to help you
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Here is the error:
Application_Start
Application_Active
SignalHandler 11
Error occurred on line: 89 (BBLabel)
Signal - 11
Stack Trace: (
"0 AS MsgBox Example SignalHandler + 108",
"1 libsystem_platform.dylib 0x00000001eaf53834 E29C0EE4-8118-3A92-BFF8-1C343F8885AD + 22580",
"2 AS MsgBox Example -[b4i_bblabel _parseanddraw:] + 480",
"3 AS MsgBox Example -[b4i_bblabel _settext::] + 472",
"4 AS MsgBox Example -[b4i_bblabel _settextengine::] + 552",
"5 CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 203908",
"6 CoreFoundation 3A5F992A-D1CD-312E-BD2E-F7C66343A417 + 202512",
"7 AS MsgBox Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1352",
"8 AS MsgBox Example -[B4IShell runMethod:] + 320",
"9 AS MsgBox Example -[B4IShell raiseEventImpl:method:args::] + 928"
)

For soe reason i am not able to aste the code into the message it gives an error so i have attached it.
I repeat that I don't have B4I but I suspect that you didn't run the project in debug mode.
 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
You are posting an issue related to b4i in the b4a forum... this sill make it harder for b4i users to find this and try to help

I repeat that I don't have B4I but I suspect that you didn't run the project in debug mode.
Yes its run in Debug mode, with this un-commented too SetDebugAutoFlushLogs(True).

When i single step thro this is the line that causes the crash:
B4X:
    dlgBLEText.TextEngine = TextEngine
 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
The IDE should "tell" you why; perhaps the two "TextEngine" are incompatible, different types.
The shown error messgae i posted is all i get in the IDE window. I`m follwoing the code from the BCtextengine sample posted by Erel which does work correctly. So i`m leaning towards its an copatability/bug when trying to use it within a dialog on B4i?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I say it again... why are you seeking help for B4i in the B4A sub forum?
You should post there, or ask EREL to move this post there.
Anyway, you could try to create a small project with this behavior and export it to zip, and share it in the forum, so that we can better see what you are doing, how you are doing it...
 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
I say it again... why are you seeking help for B4i in the B4A sub forum?
You should post there, or ask EREL to move this post there.
Anyway, you could try to create a small project with this behavior and export it to zip, and share it in the forum, so that we can better see what you are doing, how you are doing it...
Understand...my thinking was as it as a B4a & B4i issue...anyway i`ll post a small project in the B4i forum and hopefully get a solution
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I`ve trying to use a (B4X) custom dialog which has a BBCodeView on it layout for the message text it works fine in B4a
You stated that it works in B4A!
 
Upvote 0
Top