Search results for query: *

  • Users: mbb
  • Content: Threads
  • Order by date
  1. M

    Some Advice on Using Expression Trees.

    I am considering writing some code that will allow a generic filter, or where part to be applied to a collection. After a little research, it seems I will have to build an expression tree, compile it and pass the result into the where function of a collection etc. The example I have simply...
  2. M

    Sync Locks

    Hello, I am considering a piece of code that will manage access to a collection object from multiple threads - add, update, remove, clear. OK ... so I have put a sync lock within each method, but what is not clear from the MS documentation is exactly how the sync lock is behaving. Is it...
  3. M

    Question Background worker slow.

    Hello, I have written some code to generate about 100,000 amount of objects on to a list collection. When run in the application's UI thread this was a very fast process - at most 2 seconds. I moved the generation code into a background worker and now it is running considerably slower. About...
  4. M

    Question A question on object casting.

    Here is a test program I wrote to explore a facet of object casting ... Module Module1 Sub Main() Dim class1 As MyBaseClass = New MyBaseClass() Dim class2 As MyInheritedClass = New MyInheritedClass() Dim class3 As MyBaseClass = Nothing If TypeOf class1 Is...
  5. M

    Question Events processing performance.

    I was considering writing a timer object that periodically raises events in its own thread. Lets say I have 70,000+ objects handling the timer's event. I wanted to know what kind of performance overhead to expect in handling the events, besides the business specific code written into the handler?
  6. M

    Question Linq short comings?

    I have to say, I started using Linq to SQL a couple of months ago, but it is a very powerful feature. Just a couple of queries. 1. Linq apparently keeps a memory copy of the objects it maps, but it is recommended that changes to those memory objects should be commited using submitallchanges()...
  7. M

    Resolved Identity Insert not working properly.

    Hello, Using a SQL Compact 3.5 database, I have a number of tables that use an identity field. Some of those tables have predefined id values, so prior to inserting those rows I turn off identity_insert for the table and turn it back on afterwards. The problem is that I don't think the...
Back
Top