"The zune, only needs to reboot after each song... or randomly..."
Jim
"The zune, only needs to reboot after each song... or randomly..."
Jim
If you are going to launch exe's, then Process.Start (as previously mentioned) is what you want to call. Personally, I would not be launching exe's, but rather referencing the assemblies and creating an object which does what the Main entry point does for each "app." This way you can setup communication (if you want to down the road) since everything is running under the same app domain. If there is a modal dialog, then well, shouldn't the user be held hostage in order to reconcile the OK/Cancel dialog :) Jim
Perhaps you can catch the exception in code and take a look at the stack trace property on the exception object. Maybe that can help get you to a line of code that might lead you to the offending object. Jim
Read up on .Net app domains. What are you trying to do? Do you have to have a separate application or process running? Ok, only having one running app makes life easier so that you can use object references and all that. The app is already running, just show some forms without using threads. The UI is the UI. It should be thin. You don't have to model the UI after the physical implementation details (threads). Use the minimal amount of threads to do some work so that the UI isn't hung up waiting for a calcuation to finish (the UI remains snappy). When the thread is done, update the form UI to present it to the user. A form should not have much code in it, it is just the presentation to the user. Lookup BeginInvoke() on CP and google. If you really want to have some fun, you could use .Net Remoting to talk between apps. This way you can have independent apps up and they can talk to each other. Usually this is done when you have the exes running on separate machines. Jim
So I was using my solid state app like a good user should and then I found myself automatically hitting Ctrl-Shift-S from time to time- like I needed to save my work hahaha. Problem is that the app already saves my work as I go and doesn't even have a save option anywhere. I think the most fun is in OE if you hit that sequence it inserts a signature while you are typing in an email. Good times... Any other apps that have a shortcut for Ctrl-Shift-S that cause a coder pain and agony like in OE? Jim
I didn't know asking a question regarding software engineering metrics was such a controversial topic. Jim
Personally, I'd like to see another parody thread on the subject. Jim
Not only that, but Anders could take Chuck Norris in a fight because Anders would clear all references to Chuck and let the garbage collector take care of him automatically. Jim
Tom Archer - MSFT wrote:
Incredibly stupid question as one of the main benefits of C++ is not reinventing the wheel constantly.
It isn't reinventing the wheel when you are innovating. When I wanted a better C# UI, well, I made it happen:-> Jim
So someone needs to go to the .Net team at their company and start deleting some C# so your LOC becomes NEGATIVE !!! ;P Jim
Refactoring lets you do more with less over time, so lines of code don't really count for much, but it is fun to think about over a cup of coffee. Jim
David Stone wrote:
Most of it is. I haven't found the forms designer in VS 2005 to be too terribly bad. The WebForms designer rocks now too.
Partial classes are not too terribly bad? Not to get too off topic :) Jim
But is it quality code?:(( Jim
Jon Sagara wrote:
What does that matter? Why are you even keeping track of such a statistic? I'm not asking to be snarky, I'm genuinely curious
I was simply curious. I haven't kept track of the statistic myself religiously either. A couple times over the years I ran a line counter over my source. I was just daydreaming over coffee and plugged some rough estimates together for my number in my original post. I will run a line counter at some point this afternoon for a more definate number:) Jim
Quality goes without saying. I could add on the lines of code in C# tests if you want. That would bump it up a few hundred thousand more, but those are sometimes copied to create similar tests, so I didn't type them all in. I've deleted a lot of code during refactoring while improving quality. I've probably deleted more C# than most have coded. Jim
Just curious who's coded a lot of C#? I'm sure I've typed in over 250,000 loc in C# since 2003 (no auto generating VS add-ins either). Jim
Didn't you know- Office is done. It's complete. It doesn't need to work any better than it has for the last few years. Is there any true competitor to Office? Nope, not yet. Hmmmm.... Jim
The number was became so large that it exceeded the maximum integer value;P Jim
Cheaper than a company outing to a bar...Smart thinking on their part. Just no product releases after 4 pm on Friday:) Jim
So I'm coding along, and often I type in Coors instead of Colors by mistake. Also, how many times have you accidentaly created a new word unseen by man before and gone ahead and used it as a class name or identifier? :laugh: Jim