www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - dwt2 exception: required u_forDigit_3_8 NUL in library icuuc38.dll

reply yidabu <dyuyan.spam gmail.com> writes:
an app updated to with dwt2, get runtime exception, Invalid UTF8..., 
the app works fine with dwt-win and dwtx.

I built dwt2 debuglib today, re-compile app with debug flags, run ddbg -r
app.exe,get exception on startup:

unhandled D Exception (object.Exception
 "required u_forDigit_3_8 NUL in library icuuc38.dll
KERNEL32.dll (0x7c812a5b) thread(1344)
->us



java\mangoicu\UChar.d:1229


copy icuuc38.dll to app dir, get same exception. (the icuuc38.dll is not
required before)

any help?


-- 
yidabu <yidabu.spam gmail.com>
http://www.dsource.org/projects/dwin/

D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/
Mar 30 2009
next sibling parent reply yidabu <dyuyan.spam gmail.com> writes:
On Tue, 31 Mar 2009 07:26:08 +0800
yidabu <dyuyan.spam gmail.com> wrote:

 an app updated to with dwt2, get runtime exception, Invalid UTF8..., 
 the app works fine with dwt-win and dwtx.
 
 I built dwt2 debuglib today, re-compile app with debug flags, run ddbg -r
app.exe,get exception on startup:
 
 unhandled D Exception (object.Exception
  "required u_forDigit_3_8 NUL in library icuuc38.dll
 KERNEL32.dll (0x7c812a5b) thread(1344)
 ->us



java\mangoicu\UChar.d:1229

 
 copy icuuc38.dll to app dir, get same exception. (the icuuc38.dll is not
required before)
copy icuuc38.dll icudt38.dll icuin38.dll to app dir, get exception when starts: nhandled D Exception (tango.core.Exception.AssertException "Assertion failure") at KERNEL32.dll (0x7c812a5b) thread(1620) ->us org.eclipse.jface.resource.JFaceResources.JFaceResources.getResources () at org\eclipse\jface\resource\JFaceResources.d:223 org.eclipse.jface.resource.JFaceResources.JFaceResources.getImageRegistry () at org\eclipse\jface\resource\JFaceResources.d:425 ditor._staticCtor24 () at org\eclipse\jface\viewers\DialogCellEditor.d:97 object_.d:1240 from DialogCellEditor runAll(void*) () at extends\MyCellModifier.d:202 I don't know what's the problem, the code works fine with dwt-win and tango 0.99.7 -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Mar 31 2009
parent yidabu <dyuyan.spam gmail.com> writes:
On Wed, 1 Apr 2009 06:48:49 +0800
yidabu <dyuyan.spam gmail.com> wrote:

 On Tue, 31 Mar 2009 07:26:08 +0800
 yidabu <dyuyan.spam gmail.com> wrote:
 
 an app updated to with dwt2, get runtime exception, Invalid UTF8..., 
 the app works fine with dwt-win and dwtx.
 
 I built dwt2 debuglib today, re-compile app with debug flags, run ddbg -r
app.exe,get exception on startup:
 
 unhandled D Exception (object.Exception
  "required u_forDigit_3_8 NUL in library icuuc38.dll
 KERNEL32.dll (0x7c812a5b) thread(1344)
 ->us



java\mangoicu\UChar.d:1229

 
 copy icuuc38.dll to app dir, get same exception. (the icuuc38.dll is not
required before)
copy icuuc38.dll icudt38.dll icuin38.dll to app dir, get exception when starts: nhandled D Exception (tango.core.Exception.AssertException "Assertion failure") at KERNEL32.dll (0x7c812a5b) thread(1620) ->us org.eclipse.jface.resource.JFaceResources.JFaceResources.getResources () at org\eclipse\jface\resource\JFaceResources.d:223 org.eclipse.jface.resource.JFaceResources.JFaceResources.getImageRegistry () at org\eclipse\jface\resource\JFaceResources.d:425 ditor._staticCtor24 () at org\eclipse\jface\viewers\DialogCellEditor.d:97 object_.d:1240 from DialogCellEditor runAll(void*) () at extends\MyCellModifier.d:202 I don't know what's the problem, the code works fine with dwt-win and tango 0.99.7
seems the problem releated to IMenuListener. removed the listener, works fine. -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Mar 31 2009
prev sibling parent yidabu <dyuyan.spam gmail.com> writes:
this is an old problem I reported with dwt-win and dwtx, takes me a half day to
found it.

class MyMenuListener: IMenuListener
{
     void menuAboutToShow(IMenuManager manager)
     {
     	action.setEnabled(false); // the gui not responsed
	action.setEnabled(true);  // no problem     
     }
}

tested with current dwt2(Windows), tango 0.99.8, build lib by Rake, build app
by DMD 1.041

I removed all listeners, works now.








-- 
yidabu <yidabu.spam gmail.com>
http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/
Mar 31 2009