Exception Reason:1, wrote a cycle of death, this is the most likely.2, the operation of large data volume, resulting in the status of suspended animation.Solution: Managed Debug Assistants in Debug---Exceptions, remove ContextSwitchDeadlock a front hook.Exception information: The CLR cannot convert from COM context 0x645e18 to COM context 0x645f88, which has lasted for 60 seconds. The thread that owns the target context/unit is most likely to perform
1.WPF multithreaded Modification UI Example:// Start thread Modify UI, throw exception ThreadPool.QueueUserWorkItem ((q) += {" Zhang San "null);Solution: Modify the UI by using the Dispatcher.begininvoke+ delegate methodEncapsulating code that modifies the UI in a delegate// Start thread processing New true; // set to a background thread, the background thread exits automatically when the main thread ends, otherwise the program cannot end Thread1. Start ();//threading methods, modifying butt
Let's look at the code first:var s = "Test"; var len=s.length;We know that the string declared in JavaScript like above is not an object, but since S is not an object, why is there a property of length?The reason is that in JavaScript, whenever you reference a property of a string (numeric, Boolean, and so on), JS converts the string to an object by calling new string (s), which inherits the string's method and is used to handle the property's reference. Once the attribute reference is finished,
1. Create a complextype.xsd file under the D:/xml practice directory2. Download the XJC tool, which can be downloaded at the following link:http://download.csdn.net/detail/u013998070/85696673. Open the command line and adjust to the bin directory of the XJC ToolkitIf you do not know what you need to enter, you can simply enter the XJC command to view it, as followsAfter you clear the relevant commands, enter the following instructions to generate the target Java codeThe schema that
I tried some of the methods offered online, and finally I solved some problems with SQL.
1 Select the problematic database in the Query Analyzer and enter:Exec sp_configure ' allow updates ', 1--Allows the system tables to be updated.
Reconfigure with OVERRIDE
2. Run the following SQL statement:UPDATE sysobjects Set uid=1--all objects in the database are assigned to the user dbo
3. Execute the following SQL statement:
Exec sp_configure ' allow updates ', 0--Shutdown system Table update
Re
SQL database user cannot delete, prompting "the user cannot be dropped because the selected user owns the object" workaroundDue to the error of the MSSQL200 database, I restored an original database to the current SQL, at this time I came to the user, want to restore the user deleted, but the result is prompted "because the selected user has an object, so the user cannot be removed"Because PB automatically establishes the table with the logged-in user
Error: The calling thread cannot access this object because another thread owns the objectMain window Create thread, multithreading cannot call control directlyThe thread created by the main window Public MainWindow () { InitializeComponent (); New Thread (listenchange); T.start (); }Line Cheng: Public void Listenchange () { // Create a ListView item is not written, here is just an example of
Title, when a WPF child thread accesses the UI thread, assigns a value to the UI's control, and if it does not, it reports the exception: "The calling thread cannot access this object because another thread owns the object." ”The solution is as follows: // method One this. Dispatcher.invoke (Action)delegate() {// your code }); // Method Two App.Current.Dispatcher.Invoke (Action)delegate(
Error When deleting a user:
MSG 15138, level16, state 1, line 1
The Database Principal owns a schemain the database, and cannot be dropped.
Solution (SSMs ):
1. Find the user's schema
2. Find the db_owner In the schema and change the schema owner from test6 to DBO or another user.
3. delete user test6
Or use the following statement to delete the file:
--- Query the schema owned by user test6 as db_owner
Use DBA;
Select
, only to find that this reciprocity between friends, the effect is amazing, cake easy to make bigger, also faster. The money in this world is too much, a person earns is not enough, why not let everybody earn together? Remember once thin friend to me jokingly said: "Money points everybody earn well, don't make it one person." "Now I understand that he was pointing at me."5.So, no one is casually successful. You think people are casual, in fact, it is not so. There are things that you can see on
Tags: Database SQL Server 2008When using SQL Server to Do data mining, the user can not access the problem, so to the corresponding database add a login user Zhang, and give the appropriate permissions. When debugging, found that there is still a problem, so want to delete this user Zhang, and create a new user. An error message appears : The database principal has a schema in the database and cannot be deleted. (Microsoft SQL Server, error : 15138) Solution:Delete the schema for this user, an
This article from http://www.cnblogs.com/goodcandle/archive/2005/11/07/ownapi.html
In my Article Home Finance Manager--Software Design There are two classes : Cmodelbase And Cffmmodel , Cffmmodel Yes Cmodelbase . At the time of design,
Phenomenon:restore the previously backed up database to the current SQL database and now delete the user from the database, but the result is that the selected user has the object, so the user cannot be droppedSolution:1. Open Enterprise Manager,
. user_cluster_hash_expressions
All aggregation and hash functions that the user can access.
656. User_clusters
Description of the aggregation that the user owns.
657. user_col_comments
Lists the comments on the columns of the user table or view.
658. User_col_privs
Lists the authorizations on the column, and the user is the owner, the grantee, or the grantee.
659. User_col_privs_made
Lists all the authorizations on the column that the user
actually don't need to remember anything. You just need to learn how to use half of the available range to build a ruler.
Chart G
Remember, all subnets start from an even number and all subnet endpoints are odd. note that 0.0.0.0 to 0.255.255.255 (0.0.0.0/8) is not used, and 127.0.0.0 to 127.255.255.255 (127.0.0.0/8) is used for loop address.
127.0.0.0/8 is interpreted as: the network ID is 127.0.0.0, The subnet mask is eight 1 on the left, and a bunch of 0 subnets on the right
The values
(__stl_member_templates) # # __stl_begin_namespace # # TemplateclassX>classauto_ptr # {#Private: # X* PTR;//Managed native Pointers# mutableBOOLowns;//Whether you have a managed pointer# Public: # typedef X ELEMENT_TYPE; # # //explicit constructors to prevent implicit conversions#//typically receives a native pointer for construction#//The constructor cannot fail, so the exception cannot be thrown#ExplicitAuto_ptr (x* p =0) __stl_nothrow:ptr (P), owns
In other words, there is a small country with a total population of three people and a currency flow of two US dollars (only two coins with a nominal value of one US dollar ).Of the three residents, a owns a piece of land, and B and C each own 1 USD.Now, B decides to buy the land of a with $1 in his hand. As a result, Party A and Party C each have $1, while Party B owns the land worth $1.Then, the net asset
is an auto_ptr
Never create a container containing auto_ptr.
Differences between auto_ptr and delete
Template Class auto_ptr {Public:Typedef T element_type;Explicit auto_ptr (T * p = 0) throw ();Auto_ptr (const auto_ptr Auto_ptr ~ Auto_ptr ();T operator * () const throw ();T * operator-> () const throw ();T * get () const throw ();T * release () const throw ();};This is the auto_ptr class. We can see that auto_ptr creates a Class Object. When this object disappears, it will automatically call
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.