|
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Jim Wilson
|
Rating:
|
|

In order to realize the vision of access to information anywhere, any time, and on any device, developers need robust and feature-rich tools. With the release of the Microsoft .NET Compact Framework and Smart Device Projects in Visual Studio .NET 2003, Microsoft has made it easier for developers to extend their applications to smart devices by leveraging their existing knowledge of the Microsoft .NET Framework....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In our previous paper, "An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact Framework," we discussed how the Platform Invoke service of both the Microsoft .NET Compact Framework and the Microsoft .NET Framework allow managed code to invoke functions residing in unmanaged DLLs, allowing both custom and operating system (Windows CE) APIs to be accessible to applications written for either framework. Although many of the features of the service are identical between the two fra...
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Represents an XML element that contains a collection of child DataSourceElement objects....
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In Visual Studio, a solution is the highest level of organization, followed by a project. A solution can contain one or more projects. A project, in turn, contains items. Many types of items are possible and the items available for a particular project vary with the type of project. Items include, but are not limited to: files, classes, datasets, forms, and reports....
|
|
|
|
Total Hits: 3 | Today: 1
|
Author: Microsoft Corporation
|
Rating:
|
|

Supplying and returning values in a multithreaded application is complicated because the constructor for the thread class must be passed a reference to a procedure that takes no arguments and returns no value. The following sections show some simple ways to supply parameters and return values from procedures on separate threads....
|
|
|
|
Total Hits: 1 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on....
|
|
|
|
Total Hits: 4 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This walkthrough demonstrates how to create a multithreaded application that searches a text file for occurrences of a word. It demonstrates:
*
Defining a class with a method that can be called by the BackgroundWorker component. *
Handling events raised by the BackgroundWorker component. *
Starting a BackgroundWorker component to run a method. *
Implementing a Cancel button that stops the BackgroundWorker compone...
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Event logs are for keeping track of significant events when an application is running. Using event logs, you can record information that might be useful for troubleshooting or performance analysis. There are additional considerations when logging events with multithreaded components. First, there must be a mechanism to record the identity of the thread logging the message. Second, thread safety must be taken into account when interacting with the event log. The thread attempting to write a messa...
|
|
|
|
Total Hits: 2 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

When logging events from multithreaded components, special considerations come into play. You must supply a means of identifying the thread from which the event came. You must also ensure that the threads do not interfere with one another when logging events. For details, see Event Logs and Multithreaded Components....
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The BackgroundWorker component replaces and adds functionality to the BeginInvoke method; however, the BeginInvoke method is retained for both backward compatibility and future use, if you choose. For more information, see BackgroundWorker Component Overview....
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In order for your multithreaded components to be thread-safe, you must coordinate access to shared resources. If multiple threads attempt to access a shared resource at the same time, race conditions can result, causing corruption of data. You can avoid race conditions by using locks. For details on thread-safety and race conditions, see Thread-Safe Components....
|
|
|
|
Total Hits: 3 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

With Visual Basic, you can write applications that perform multiple tasks at the same time. Tasks with the potential of holding up other tasks can execute on separate threads, a process known as multithreading or free threading....
|
|
|
|
|
|