|
I was just playing with your app, when I trying to customize the UI I got this exception.
Steps to reproduce it:
1. Run the app
2. Double click on the window to make the border visible.
3. Now resize the window by verically, make the lower border go up.
4. Double click on the window, to make it border-less.
5. Double click again on the window...Exception....
UI customization suggestion: Why don't you resrict the app to fixed minimum width and height?
Exception details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: Invalid parameter used.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
at MyDUMeter.MainForm.pictureBox1_Resize(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.PictureBox.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Follow live World Cup Cricket scores here[^]
|
|
|
|
|
I havent forgotten about this. On the imaginary fixlist.
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
|
mordejai wrote:
Why don't you make it an Explorer Band?
Neat idea I was wondering what I could do to test Explorer/ Internet Explorer bands. I'll try something over the weekend.
Cheers
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
mordejai wrote:
I was planning to do it myself, but I'm out of time
About 60 mintues and I have it going Now to change the behaviours for it
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
It appears the BandObject lib is a bit flaky. Occasion causing WinXP to show the shutdown dialog . Also it appears to work randomly. Maybe i'm missing something?
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
Hi,
Nice work, but one oddity is showing up here. I'm on an NT Domain at work and the dropdown list in the Options dialog for "MachineName" seems to be showing mostly blanks. There are a couple of enrties, but I think they are for machines that aren't members of the domain.
This means that I can't select my own machine from the list! It works if I don't touch the setting, though (i.e. leave it as ".")
James
|
|
|
|
|
Swythan wrote:
I'm on an NT Domain at work and the dropdown list in the Options dialog for "MachineName" seems to be showing mostly blanks. There are a couple of enrties, but I think they are for machines that aren't members of the domain.
Argg, no way for me to test it . That code (for the machine name) was even tested with some people I chat to on the internet. Unfortunately, I will not be able to ever (in the near future anyways) test this. All I can hope is some CPian mite do me a favour....
Anyways I will have a look, I limited the list to 20 entries and I dont think I'm checking for "" blanks . I will add some stuff, and mail u a copy. Perhaps we can make it work
Cheers
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
Hi,
I was looking on that thread (and many others!) while back from travel. Looks like (at least a little...) a bit as a Unicode thing...
Regards...
Eric
|
|
|
|
|
Same problem here, 4 names show up, but more blanks. I can select Interface after a few restarts and leave machine name blank.
|
|
|
|
|
It works for me, I am on a 2003 domain running it on an XP Pro SP1 all updates box and it shows both the server and my desktop (only 2 computers on the network)
btw, this is pretty cool!!!
Matt Newman
If you chose to continue this discussion, I am fully prepared to make you my bitch. I invite you to ask around, and you'll find out that I'm quite capable of doing so - John Simmons on Trolls
|
|
|
|
|
Very good one. *thumbs up*
I have a small suggestion though.
1. Delete the MyDUMeter.config first and run the app.
2. It brings up the Options Dialog
3. Don't select any item from "Interface" combo.
4. Now try to close the options dialog by clicking X, it will bring the Options Dialog again.
Instead of doing that, display a message box with message like this "Interface is missing" (something like that)
I know you mentioned about it in the article, somehow I missed it.
When I ran the app first time I tried to couple of times closing the options dialog, but it kept on displaying the same dialog. Then I killed the app and read your article again. Then I read your comments "When running MyDUMeter for the first time the option dialog should popup that allows you to select you interface."
Follow live World Cup Cricket scores here[^]
|
|
|
|
|
Kant wrote:
Instead of doing that, display a message box with message like this "Interface is missing" (something like that)
Done Will now display "User Error"
Kant wrote:
Follow live World Cup Cricket scores here[^]
static DateTime last;
private string[] GetScores()
{
if ((DateTime.Now - last).TotalMinutes >= 1)
{
last = DateTime.Now;
WebClient wc = new WebClient();
Stream str = wc.OpenRead(@"http://www-rsa.cricket.org/link_to_database/NEW/LIVE/scores.html");
string html = "";
int read = 512;
byte[] buf = new Byte[read];
do
{
read = str.Read(buf, 0, read);
html += System.Text.Encoding.Default.GetString(buf, 0, read);
}
while (read > 0);
str.Close();
wc.Dispose();
string[] lines = html.Split('>','<','\n');
scorestore = new string[]{lines[207].Replace("\t"," "), lines[224],
lines[227].Replace("\t"," "),
lines[228].Replace("\t"," "),
lines[229].Replace("\t"," "),
lines[230].Replace("\t"," ")};
}
return scorestore;
} What I have for my IRC bot
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
|
Kant wrote:
Care to explain bit more about your IRC Cricket bot?
The IRC is just a plain commandline app based on the Thresher IRC library. I have adapted it a bit, and made a plugin system for it (see my Plugin Manager article). So now if some one "shouts" (says) "score" in a line , my bot just sends each line from the array returned from that function into the channel it was said in.
Basically the function just rips the neccessary parts from a rather static webpage. O and it checks at most most every minute (the HTML page only updates every 60 seconds). I know it rough and will probably fail to work, but it DOES still work Ahh you just gave me a great idea Realtime crickets scores as a explorer band. Hmm. Coming soon.
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
leppie wrote:
O and it checks at most most every minute (the HTML page only updates every 60 seconds).
leppie wrote:
I know it rough and will probably fail to work, but it DOES still work Ahh you just gave me a great idea Realtime crickets scores as a explorer band
I can't wait.
Hope you can do it before the Worldcup Cricket is over.
Follow live World Cup Cricket scores here[^]
|
|
|
|
|
...any suggestions?
|
|
|
|
|
|
http://pepper.idge.net/netload-1.0.zip is almost same thing as this program without the extra logging features, and its in C++ ~
Of course it isnt nearly as configurable as MyDuMeter, but the source is there, feel free to hack on it.
|
|
|
|
|
Sweet I'll have a look since I'm starting to wonder into that land.
I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
|
|
|
|
|
|
|
Here we go, always the same error since version 1.0...
"Application has generated an exception that could not be handled.
Process id=0x19e4 (6628), Thread id=0x19e0 (6624)
Click OK to terminate the application.
Click CANCEL to debug the application."
I have the newest .NET framework but I don't have .NET, I am used to the old stuff and I don't like .NET that much .
I hope you can explain what I do wrong, I installed the framework again but that didn't help me either!
|
|
|
|
|
Rentier wrote:
I hope you can explain what I do wrong
I'm sorry but I cant. This is built for .NET 1.0, I think you are using latest beta (1.1) maybe? I could email you a debug build if you dont have VS.NET or make a makefile for it. This will allow you to step thru the source in the GUI debugger. Perhaps that can give more clues...
Cheers
MyDUMeter: a .NET DUMeter clone
|
|
|
|
|
Uhh it's built for 1.0...
Yes, I have the newest 1.1 but I don't think that should be a big deal, I had 1.0 before and updated to 1.1 when I saw that error!
Problem is that I don't have .NET, I'll stick with 6 as long as possible because I don't like the fact that people have to download a real big Framework for nothing new and I also don't have the money atm...
But if you would mail me I would let the debug build run and see what's wrong.
rentier@caleri.de
|
|
|
|