Mathias Bauer wrote:

Samphan Raruenrom wrote:


I build OOo 680_m79 successfully. Writer run fine until I press arrow key.
It'll die like this in MSVC++ debugger :-


It still die here in OOo 2.0 beta build.

'Unhandled exception at xxx in soffice.bin'
'exception: com::sun::star::uno::RuntimeException @ xxx'


Obviously a Runtime exception occured on executing the code called by
the keystroke. You are using MSVC++ debugger, so you can set a break
point on the following line in this function:


xDispatch->dispatch(aURL, css::uno::Sequence< css::beans::PropertyValue >());


Before executing this call you can tell the debugger to stop when a C++
exception is thrown. When you get to a place where a RuntimeException is
thrown, you most probably have found the culprit. Sometimes Exceptions
occur and are caught in the code, so possibly you can continue execution
and see if the debugger stops again at another code area. If you reach
the following code in the funtion:


catch(const css::uno::RuntimeException& exRuntime)
{ throw exRuntime; }


The code that throw the exception is i18npool's BreakIterator_Unicode::loadICUBreakIterator().

8<---------------------------------------------------->8
UErrorCode status = U_ZERO_ERROR;
switch (which) {
case LOAD_CHARACTER_BREAKITERATOR:
breakiterator = icu::BreakIterator::createCharacterInstance(icuLocale, status);
break;
case LOAD_WORD_BREAKITERATOR:
breakiterator = icu::BreakIterator::createWordInstance(icuLocale, status);
break;
case LOAD_SENTENCE_BREAKITERATOR:
breakiterator = icu::BreakIterator::createSentenceInstance(icuLocale, status);
break;
case LOAD_LINE_BREAKITERATOR:
breakiterator = loadICURuleBasedBreakIterator(line_brk);
break;
}
if ( !U_SUCCESS(status) ) throw ERROR;
8<---------------------------------------------------->8


Further debugging found that createCharacterInstance() failed.
Arrow key (move caret by one character/cluster) definitely need ICU character iterator
but it seems that the breakiterator can't be created.


I can't debug further because 'build debug=true' in icu won't create debug info
so I don't know how to debug-build icu.


--
_/|\_ Samphan Raruenrom.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to