Пример #1
0
        private static void TryInitializeScci()
        {
            lock (lockObject)
            {
                if (!initialized)
                {
                    // Create configuration
                    //if (Environment.Is64BitProcess)
                    //    wrapperClient = new X64toX86BridgeScciWrapper();
                    //else
                    //    wrapperClient = new NativeScciWrapper();
                    wrapperClient = new NativeScciWrapper();

                    FormProgress.RunDialog(Resources.ConnectingSPFM, new Action <FormProgress>((f) =>
                    {
                        f.Percentage = -1;

                        initialized = wrapperClient.InitializeScci() == 0 ? true : false;
                        if (initialized && writtenDataCache == null)
                        {
                            writtenDataCache = new Dictionary <IntPtr, Dictionary <uint, uint> >();
                        }
                    }));
                }
            }
        }