Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

PerfectPhase PerfectPhase "This is not war, this is pest control!" - Dalek to Cyberman
  • hard disk help

    As far as hard drives, have you thought about faster drives or using RAID-0 to increase the speed.  For the spec machine you list, a single 7200rpm drive is a bit of a wimp Smiley

    Stephen.

  • Anonymous methods

    Sven Groot wrote:
    PerfectPhase wrote: One other thing is there a general perpose parameterless delegate in the framework?  I tend to use ThreadStart but it's a bit missleading when you read the code back

    MethodInvoker


    Thanks, feel kind of silly now as thats in the help file.....

  • Anonymous methods

    Sampy wrote:

    Works fine on the latest VS in my private branch.


    What's the latest version of VS like, I can manage about 3-4 compile-run sequences with the Feb-CTP before VS's memory useage tops out at over 500Mb and the UI becomes too slow to use?

    Stephen.

  • Anonymous methods

    That's a shame, using anonymous methods in control.invoke seem, well, natural.

    One other thing is there a general perpose parameterless delegate in the framework?  I tend to use ThreadStart but it's a bit missleading when you read the code back

    Thanks anyway,

    Stephen.

  • Anonymous methods

    Oh, I have the Feb CTP and get

    Error 1 The best overloaded method match for 'System.Windows.Forms.Control.Invoke(System.Delegate)' has some invalid arguments D:\devwork\VirtualBox\VirtualBox.Lines.Standard\Visualiser.cs 54 10 VirtualBox.Lines.Standard


    Error 2 Argument '1': cannot convert from 'anonymous method' to 'System.Delegate' D:\devwork\VirtualBox\VirtualBox.Lines.Standard\Visualiser.cs 54 24 VirtualBox.Lines.Standard

    Stephen.

  • Anonymous methods

    I have a chunk of code that looks like this


    public delegate void MyDelegate();
    private void DataReceived (object sender, GenericEventArgs<byte[]> data)
    {
    MyDelegate d = delegate
    {
    rtbLog.AppendText(data.Value.ToString());
    };

    rtbLog.Invoke(d);
    }


    Surely there must be a way to write it like this


    private void DataReceived (object sender, GenericEventArgs<byte[]> data)
    {
    rtbLog.Invoke(delegate ()
    {
    rtbLog.AppendText(data.Value.ToString());
    });
    }


    Just can't see how!

    Stephen.

  • how original!

    harumscarum wrote:
    Was flipping through the channels and I saw this: http://www.nbc.com/nbc/The_Office/ . *sigh*


    Looks like thats another great show trashed

    http://www.bbc.co.uk/comedy/theoffice/

    Stephen.

  • I Fully Support Mr. Grimes, .NET is NOT the right technology for US as a C++ programmer

    leighsword wrote:

    everything is OK before Longhorn is released.



    Not 100% sure on this but you should still be able to call into WinFx via COM Callable Wrappers from unmanaged code. 

    Any way all the existing API's should still work with longhorn, you just will not get seamless access to all the cool new toys Smiley

    And there will always be a need for unmanaged C++ for kernel/driver type work, right tool for the right job and all that.

    Stephen.

  • Response.​Redirect?

    Rake wrote:
    it just says line error

    Server.URLEncode()-ing the Session("username")



    Please tell me you didn't actuall type the '()-ing the..' bit but instead typed

    Server.URLEncode (Session("username"))

    having first checked that Session("username") is not null?

    Smiley

    As for redirect

    http://www.devguru.com/Technologies/asp/quickref/response_redirect.html

    Stephen.

  • No IP Adress Assigned

    weecohiba wrote:
    I have had a wireless network opertaing for over a yera now. I have a server, through which  three laptops hang off and connect to the internet. Now all of a sudden the server is not assigning an IP adrees to the laptop. This seems to be intermittant, some times it works ok other times I cannot conect. This can happen to one or more laptops and at the same time the other laptops work perfectly. I can see the wireless network and can connect to that ok, however when you ping the host it says 'destination unreachable.


    I've had this happen on several wireless systems,never found a good answer, I normally end up puting a staic address into the 'alternative config' tab under TCP/IP

    Stephen.