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
H

Helfdane

@Helfdane
About
Posts
49
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Eclipse (Java?) makes try/catch mandatory?
    H Helfdane

    I do have code assist, but for some reason all I got was a compile error, not a hint on how to disable "possible exceptions". I must admit I'm not using the standard Eclipse, but an Eclipse version which is tailored for the Sonic ESB, so maybe there's something in there which prevents it. And the tips are appreciated, as always.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    Java help question csharp java

  • Eclipse (Java?) makes try/catch mandatory?
    H Helfdane

    Thanks for your answer. This was what I've been looking for.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    Java help question csharp java

  • Eclipse (Java?) makes try/catch mandatory?
    H Helfdane

    While I do agree with you, I was wondering if I could "force" a compile and run it, as I know that there won't be an exception on that line.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    Java help question csharp java

  • Eclipse (Java?) makes try/catch mandatory?
    H Helfdane

    Hi, I'm usually programming in .net but now I have to do a project in java. Nothing wrong with it, but Eclipse demands try/catch blocks on sortof every call which might pose a problem, even if I have error handling in place. How do I get rid of that? I just need a quick check for something, but it even prevents me to compile it.

    private void doSomething()
    {
    Properties properties = readProperties(chooser.getSelectedFile().getCanonicalPath()); <--- compile error
    // do something with properties
    }
    private void readProperties(String location)
    {
    // do stuff including errorhandling
    }

    While the location of my errorhandling might be debatable, this is for a proof of concept app where I *know* the input is correct.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    Java help question csharp java

  • VS2010 Express, no MSSQL?
    H Helfdane

    I downloaded the MS Web Platform Installer. When I select Visual Web Developer Express, it say's "okay, fine, but you also need SQL 2008R2 Express, Sql2008 R2 Management Tools, SQL Server Native Client, SQL2008 Server System CLR Types, SQL 2008 Server Compact 4.0, Tools for SQL 2008 Server Compact 4.0, Tools for SQL 2008 Server Compact Installer 4.0 and Tools for SQL 2008 Server Compact Installer New Installations 4.0." And there is no way to unselect them. This would only bog down my dev machine by installing/running this all... [edit]The link you provided has given me Visual Studio 2010 alright, but not the version which can create web applications, only windows forms allowed :( I appreciate the help though.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    modified on Friday, May 20, 2011 4:08 PM

    ASP.NET database sql-server sysadmin question help

  • VS2010 Express, no MSSQL?
    H Helfdane

    Hi, While getting the good stuff at work, my own weekend-company uses the Visual Express editions to get things working. Lately my devmachine crashed and I thought I wanted to use the occasion to "fix" some of the network items on the list. So now I have a database box, a testmachine and a devmachine. But here it comes. When I want to install VS2010 express on my devbox, it seems that MSSQL Express is mandatory. How do I install VS2010 Web without the SQL server? Any ideas? Thanx in advance!

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    ASP.NET database sql-server sysadmin question help

  • Minimizing to system tray causes stack overflow
    H Helfdane

    Thanx for the tip, will try it out soonish as my harddrive died on me today X|

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# data-structures question

  • Minimizing to system tray causes stack overflow
    H Helfdane

    Hi, I have a vewwy simple app which just sits in the system tray while doing its work. When a user double clicks the notification icon, a config window opens and you can edit some settings there. Right now, I have a simple form which will be hidden from the user and show a notification icon when formstate is set to minimized.

        private void TrayForm\_Resize(object sender, EventArgs e)
        {
            if (FormWindowState.Minimized == this.WindowState)
            {
                notifyIcon1.Visible = true;
                this.Hide();
                //this.ShowInTaskbar = false;
            }
            else if (FormWindowState.Normal == this.WindowState)
            {
                notifyIcon1.Visible = false;
            }
        }
    

    For some reason, this works under windows xp, in windows7 I have to disable the ShowInTaskbar call, as that causes a stack overflow in the current thread. If I don't use the call, the form is minimized and remains visible on the taskbar, annoying at best. Any workarounds? (or am I doing something stupid here...?)

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# data-structures question

  • .Net remoting
    H Helfdane

    I've put up a demo project with my implementation here: Clicky![^] Hope it helps.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    I think I've solved my issue :-) Took me a while to figure it out, but I now have a working solution. I'll post it on my own blog when I have the time to do it. Posted here.[^] What my problem was, I was using MarshalByRef on the objects I tried to transmit, at least I'm guessing this was the culprit. The working solution for me was to replace MarshalByRef with [Serializable] and use the tcp-channel instead of the http-channel. In addition, in the client I replaced the code which registered the server object as WellKnownClientType with the Activator.GetObject() routine. The server object is still using MarshalByRef and is in the Singleton mode. Now I have a working client/server. I'm not sure if my solution is "legal", but it gets the job done :-) -edit with blog link-

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    modified on Sunday, April 17, 2011 5:33 PM

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    First what is "often enough"? Once day or once a year? [quote]And about often, if for every issue I need to send out a consultant to fix it, then even once a year is too often. If I could control everything from A to Z, then this would not be necessary, but I always try make sure the software is as robust as possible.[/quote] As stated above. Second that point still doesn't mean that the port needs to be changed while the application is running. One can provide a GUI to modify a config file and then provide a management app to bounce the server.Changing the port while running means that you MUST deal with the complication of txns in flight. And also deal with providing a timely notification to clients. [quote]The user should be able to change the port number in a console, not while the server is running.[/quote] As stated above. What did I miss?

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    read my post again :-) The service is not necessarily running when the port is changed. And about often, if for every issue I need to send out a consultant to fix it, then even once a year is too often. If I could control everything from A to Z, then this would not be necessary, but I always try make sure the software is as robust as possible.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    The user should be able to change the port number in a console, not while the server is running. It happens often enough that some complementary software from another supplier takes the port we configured. So the sysadmin at the client site should be able to adjust it. Config files are a bridge too far and they get lost in them.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    I care, C# plz ;)

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    Okay, then what would you suggest I use then? These are the conditions in which it should work: 1) no webserver present (or other software, just the .net runtime) 2) need to change port & protocol at runtime dynamically. Thanx in advance!

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • .Net remoting
    H Helfdane

    Hi, I'm experimenting with remoting, trying to see if it's a valid tool to use for our application. But, as luck would have it, I'm lost again. I wonder, is it possible to create an object on the server side and send it to the client? So far, all the examples I've seen and information found, I only found information about instantiating an object on the server from the client. But if I want to call a method from the client on the server (for instance: public User GetUser(string username) {}), is it possible for the server to return me the User object which the server has created (from a database-helper or equivalent)? So far, I've only been successful in transferring .net only objects (strings, ints, guids etc). That worked, but now that other thing .. ;)

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    .NET (Core and Framework) csharp database sysadmin question

  • Solution directory
    H Helfdane

    I think I better go grab a coffee first before replying first thing this morning ;)

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# csharp visual-studio help question lounge

  • Solution directory
    H Helfdane

    You're not correct regarding Visual Studio 2010 Express (10.0.30319.1 RTMel). There is only a project template (installer installed only the C# template) which you can choose and the only boxes where you can type something is the solution name and the search box.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# csharp visual-studio help question lounge

  • Solution directory
    H Helfdane

    Thanx! At first I missed the option "show all options". There it was when I enabled it.

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# csharp visual-studio help question lounge

  • Solution directory
    H Helfdane

    Hi, I'm growing grey early here... I severly need HELP. When using Visual Studio 2010 (express?)... ...if you click File => "New Project", where do you specify the directory on disk? I've been creating all sorts of project in random user directories and IT'S DRIVING ME CRAZY! Why can't I specify the directory where VS2010 creates the solution?!? Why can't I start a project in D:\projects? This is one of the things which drives me away from .net, even tho it's the platform of choice here...

    A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

    C# csharp visual-studio help question lounge
  • Login

  • Don't have an account? Register

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