Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MarkLTX

@MarkLTX
About
Posts
14
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • .net memory leaks
    M MarkLTX

    My guess is that the memory usage hasn't grown enough to trigger the garbage collector. You could try calling Dispose() on the second window after it closes and see if that has any effect. You could also try "manually" invoking garbage collection after the second window closes (first setting any references to it to null).

    .NET (Core and Framework) csharp visual-studio performance

  • Firefly
    M MarkLTX

    I assume you mean the NEW Battlestar Galactica. Riveting.

    The Lounge com performance career learning

  • Does anybody 'Hide extensions for known file types'?
    M MarkLTX

    I find it very frustrating when the file extensions are hidden.

    The Lounge question csharp visual-studio announcement

  • Declare query in or out of loop?
    M MarkLTX

    I need to call the same LINQ to SQL query in a foreach loop, specifying a different value in the 'where' clause each time (i.e. 'someVariable' in the example). Is it better to declare the query inside the loop or outside the loop? I have verified that I get the same results either way. Please ignore the idea of eliminating the outer loop by passing the entire key list to the query. OUTSIDE:

    var someVariable = whatever;
    var q = from rec in table
    where rec.Key = someVariable
    select rec;

    foreach (var key in keylist)
    {
    someVariable = key;
    foreach (var rec in q)
    {
    // Do something.
    }
    }

    INSIDE:

    foreach (var key in keylist)
    {
    var q = from rec in table
    where rec.Key = key
    select rec;

    foreach (var rec in q)
    {
        // Do something.
    }
    

    }

    LINQ database csharp linq tutorial question

  • How to enumerate remote socket ports
    M MarkLTX

    OP here. There can be multiple instances of my app running on computer A, each listening on a different port. On computer B, I want to run a monitor app that can connect to any of the app instances running on computer A. It would be nice if I could enumerate those instances rather than having to just "know" what port(s) are listening. What I might do is code my application to use a limited range or list of ports (say 100 fixed port numbers) and then code the monitor app to simply scan that list.

    C / C++ / MFC csharp tutorial question

  • How to enumerate remote socket ports
    M MarkLTX

    Is there a way in C or C# to enumerate the port numbers in listening state on a remote Windows computer? I know you can use GetTcpTable() to enumerate the ports on the local computer, but I want remote.

    C / C++ / MFC csharp tutorial question

  • Pointless locking?
    M MarkLTX

    Then the issue is CAN _memberString be modified in mid-copy, under any circumstances? Consider that... 1) Strings are immutable, at least at the level of C# code. 2) _memberString is actually a reference to a string, not the string itself. References are N bytes (can't remember what N is). Perhaps it is possible that while those N bytes are being copied, the copy could be interrupted and the N bytes overwritten by a new value, so that the reference copied to s is corrupted. Like the other guy said, better safe than sorry.

    C# question

  • Pointless locking?
    M MarkLTX

    Is it pointless to put a lock around a single line of code like this (e.g. in a 'get' accessor) regardless of how _memberString is set? lock (_locker) { return _memberString; }

    C# question

  • accessing control's value from a seperate class.
    M MarkLTX

    If the other class has a reference to the form instance, you can either make the two control objects public members of the form class, or add two "get" methods to the form that just return the desired properties of the two control.

    C#

  • Looking for a SQL Server tool
    M MarkLTX

    Checkout http://www.idera.com/Downloads/Default.aspx[^]. Idera has many SQL Server products and toolsets. Not free, but with a 14 day evaluation period. Mark L.

    The Lounge database sql-server com sysadmin tools

  • Question about Open Source license
    M MarkLTX

    I found some source code published under the (new) BSD license. Every file includes a copy of the license and the author's copyright. I would like to publish a derived work. That is, I would like to modify some of the files and release a different version of the code. The BSD license requires me to retain the original author's copyright. I'm all for giving the original author due credit, but how do I get credit for my changes and enhancements? Would the files I modify contain two copyrights (mine and the original author's)? That seems weird.

    IT & Infrastructure question announcement

  • Unjustified '1's?
    M MarkLTX

    It seems to me that some articles get '1' votes unfairly. Just an opinion, OK? When I see an article with a bunch of 5s, a few 1s and nothing in between (and no comments), it makes me wonder. I SUSPECT that some members cast a lot of '1' votes for "less than honorable" reasons. Possibly out of spite or to lower the average relative to their own articles. I don't have any hard evidence, just a suspicion, but I wonder if anybody else has the same suspicion. Does (or could) CodeProject attempt to detect members who vote mostly 1s? Maybe review some of the articles these people are voting on to see if there is any apparent justification or explanation? Maybe send them a gentle message suggesting they provide a comment when voting 1 on an article so the author can do better next time?

    Site Bugs / Suggestions css question

  • Programmatic (API) access to ISO files?
    M MarkLTX

    It's not that critical, just a "nice to have" for my app. Besides, if it was that easy, it seems like there would already be a free code library available for this. Heck, my boss may even be willing to pay a reasonable price for one.

    C / C++ / MFC json question

  • Programmatic (API) access to ISO files?
    M MarkLTX

    There are LOTS of utilities (executables) for mounting ISO files to drive letters, but I want to open and read the contents of an ISO file through some kind of library, not a separate EXE. Any way to do that? I don't mind mind mounting the ISO to a drive letter or directory, I just don't want to make the user do it manually.

    C / C++ / MFC json question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups