public static void SetICUDataFile(string icudatafile) { lock (s_dataLoadLock) { if (s_isDataLoaded) { return; } } if (s_isDataLoaded) { return; } s_isDataLoaded = true; s_icuDataFile = icudatafile; //---------- int major, minor, revision; NativeTextBreakerLib.MyFtLibGetFullVersion(out major, out minor, out revision); if (dataHolder == null) { //dataHolder = new InMemoryIcuDataHolder(@"d:\WImageTest\icudt57l\icudt57l.dat"); dataHolder = new InMemoryIcuDataHolder(icudatafile); dataHolder.Use(); } }