Copy link to clipboard
Copied
Hi.
I created a custom dialog with scroll box.
when I set a text which has more than 300 characters on a line of the scroll box,
the error message "Internal Error 7004, 6055410...." is shown.
Is there a character number limitation on oen line of the scroll box?
BestRegard.
erieru103
Copy link to clipboard
Copied
When the number of characters is from 255 to 300, it's OK.
Copy link to clipboard
Copied
Hi,
There might be, I don't know for sure, and it might vary with the new FM9 interface.
When do you get the crash? As soon as you try to set FP_Labels?
Why put strings that long anyway? Do you really have a box wide enough to show 300 characters?
Russ
Copy link to clipboard
Copied
Hi, Russ.
FrameMaker crashed when I called F_ApiModalDialog.
After I clicked OK button on the error dialog,
I could see the text which have more than 300 characters for an instant on the scrollbox.
Of course, I cann't see all of the 300 characters, my scroll box have not enough size to show 300 characters.
The texts set in the scroll box are gotten from a Excel file which are provided by a visitor.
And there are more than 300 characters in a cell by chance this time.
Should I reduce the number of the characters and display it?
But It is not a true solution...
BestRegard.
erieru103
Copy link to clipboard
Copied
>>After I clicked OK button on the error dialog,
>>I could see the text which have more than 300 characters for an instant on the scrollbox.
Sorry, it's incorrect.
If I move the error dialog, I can see the text which have more than 300 characters for an instant on the scrollbox,
but soon Microsoft Development Environment dialog shown which say unhandled exception at 0x00477d05 in FrameMaker.exe.....
(I use Visual Studio to run my plugin now)
Copy link to clipboard
Copied
Sorry I wrote that if there are more than 300 characters on a line of the scroll box,the error dialog wll be shown.
more than 320 characters.. is right.
I found in the variable set dialog, it has the same phenomenon if I set a variable'name with 320 characters.
Maybe it's FrameMaker specification??
Copy link to clipboard
Copied
erieru,
Again, I am not aware of a limit, but if your code is otherwise robust and you are reliably seeing a crash, I think that means you found one. I would suggest simply truncating all the strings before applying them to the dialog. If you need to remember the full strings for later, copy them to another F_StringsT buffer for storage. You'll always be able to associate a selection in the scroll box with an item in the buffer using the scroll box selection index.
Russ
Copy link to clipboard
Copied
Hi, Russ.
I have done the way you suggested.
The error dialog doesn't be shown.
Thank you for your advice.
BestRegard.
erieru103