Recently done a later program, started the transaction after a period of operation of the business, when running for a period of time, this exception occursThe CLR cannot convert from COM context 0x1b1c38 to COM context 0x1b1da8, which has lasted for 60 seconds. The thread that owns the target context/unit is most likely to perform a non-pump wait or handle a very long operation without sending a Windows message. This situation often affects performance and may even cause the application to not
Encounter this disgusting problem entangled don't want, we met the words hope not detours, after this toss let me a little doubt life. Ha ha hahaThe resolution code is as follows:Create a new thread dedicated to running a sub-windowThread THD = new Thread (new Parameterizedthreadstart (shownotify));Thd. Setapartmentstate (ApartmentState.STA);//Key settingsThd. IsBackground = true;Thd. Start ();Thread.CurrentThread.Join ();//main thread waitPop-up captcha hint boxprivate void Shownotify (Object o
web|web2| Community
Enet Silicon Valley Power News recently, "2007 Internet Innovation Leaders International Forum" in Beijing, Love Apartment was selected as "2007 China's most investment value 100 website, as a successful dating community representative of the love apartment, in the meeting with other peers on" community and dating site innovation " The subject was hotly discussed.In response to the conce
The workaround is to define a static ActiveX object in the form class that assigns the ActiveX object on the interface to the newly defined object in the Formload class, which is accessible to the static object.public static Axclientdriver_ntlib.axclientdriverctrl com = new Axclientdriver_ntlib.axclientdriverctrl ();private void Form1_Load (object sender, EventArgs e){com = THIS.AXCLIENTDRIVERCTRL1;IsRunning = true;This. FormClosing + = form1_formclosing;Thread t = new thread (startserver);T.set
Import and export function, when calling ShowDialog error, the workaround is as follows:Entry point for the WinForm form: /// /// The main entry point for the application. /// [STAThread] privatestaticvoid Main (string[] args) { application.enablevisualstyles (); Application.setcompatibletextrenderingdefault (false); Application.Run (New LoginForm ()); } The error page program is as follows: Public StringImp
Ruby-v #查看ruby version ruby-e ' require ' watir; Puts Watir::ie::version ' #查看watir版本
RVM list Known #列出已知的ruby版本
RVM Install 1.9.3
RVM Use 1.9.3 | RVM Use System
RVM Use 1.9.3--default
RVM List #列出本地ruby版本
RVM Remove 1.9.2
See RVM Practical Guide for specific details https://ruby-china.org/wiki/rvm-guide
Gem-v #gem版本
Gem Source #
Ruby Gem command and rubygem command
I. Introduction
Gem is a standard package for managing Ruby libraries and programs. It is very convenient to find, install, upgrade, and uninstall software packages through Ruby Gem (such as http://rubygems.org/) sources. Ruby Gem is installed in Ruby 1.9.2 by default. If you are u
Transferred from: http://www.jianshu.com/p/728184da1699Gem Introduction:Gem is a standard package for managing Ruby libraries and programs, and it is easy to find, install, upgrade, and uninstall packages through Ruby Gems such as http://rubygems.org/.Ruby 1.9. Version 2 has the Ruby Gem installed by default, and if you are using a different distribution, see "How to Install Ruby Gem".How to install the Rub
Ruby-v # view the ruby VERSION ruby-e '''require "watir"; puts Watir: IE: version'' # view the watir VERSION
Rvm list known # list known ruby versions
Rvm install 1.9.3
Rvm use 1.9.3 | rvm use system
Rvm use 1.9.3 -- default
Rvm list # list local ruby versions
Rvm remove 1.9.2
For details, see RVM practical guide https://ruby-china.org/wiki/rvm-guide.
Gem-v # gem version
GEM-related commands use
1. Show help and version of Gem
Copy Code code as follows:
Gem–h/--help
#显示gem的帮助
Gem–v/--version#显示gem的版本号
2. List all available software for the remote library
Copy Co
Gem Common commands
Gem-v # View version of RubyGems software
gem help #显示RubyGem使用帮助
Gems help Example #列出RubyGem命令一些使用范例
gem install [gemname] # ann Install the specified gem package, the program will first find the GEM
want to view the help of the install command separately, you can use the NPM helper install--------------------------------------------------------------------------------------------------------Gem-v #gem版本Gem Update #更新所有包Gem Update--system #更新RubyGems软件Gem install Rake #
Write one of the simplest examples
1. Build the following folder
Note: The Lib directory must have a RB file that is the same as your gem name.
Copy Code code as follows:
$ CD Hola
$ tree
.
├──hola.gemspec
└──lib
└──hola.rb
2. Write Code
. Hola.rb
% Cat lib/hola.rb
class Hola
def self.hi
puts "Hello world!"
End End
. hola.gemspec
% cat Hola.gemspec
Tutorial on creating a custom Ruby gem package, rubygem
Write a simple example
1. Create the following folder
Note: The lib directory must have a rb file with the same name as your gem.
Copy codeThe Code is as follows:$ Cd hola$ Tree.├ ── Hola. gemspec── Lib└ ── Hola. rb
2. write code
. Hola. rb
% cat lib/hola.rb class Hola def self.hi puts "Hello world!" end end
. Hola. gemspec
% cat ho
Magic Gem House system development, Magic Gem House source code development, Magic Gem House Consulting: 185,2946,0381 Mr. Chen (micro-electric), Magic Gem House mode development, Magic Gem House app development, Magic Gem House P
there. Else T, as it turns out, thereIsSomething out there: it's called the graphics execution manager, or gem. the intel-sored gem project is all of one month old, as of this writing. the gem developers had not really intended to announce their work quite yet, but the TTM discussion brought the issue to the fore.
Keith Packard's introduction to gemshortdes a do
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.