What are you doing? [modified]
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
Wait for ages until all the files are copied to the device again.
You should use an emulater for development and the PDAs for testing.
dl4gbe wrote:
I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them.
They took the VB aproach, that is assume you're too dumb to handle your own errors and do everything for you. Although, (I don't know about VB.NET) but in classic VB you can change this behavior, so I'd imagine this functionality would be carried over.
dl4gbe wrote:
Redmond should be bombed not Beirut.
Nobody is making you use .NET. ;P
Jeremy Falcon
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
You should be award 5 for breaking every rule in CP. 1. Posting a programming question in the lounge. 2. Making inflammatory remarks which should be directed to the soapbox. I'm guessing it's a good time to don flack jacket and expect some shrapnel on this one...
We made the buttons on the screen look so good you'll want to lick them. Steve Jobs
-
You should be award 5 for breaking every rule in CP. 1. Posting a programming question in the lounge. 2. Making inflammatory remarks which should be directed to the soapbox. I'm guessing it's a good time to don flack jacket and expect some shrapnel on this one...
We made the buttons on the screen look so good you'll want to lick them. Steve Jobs
norm .net wrote:
You should be award 5 for breaking every rule in CP.
God it's time for me to go to sleep. :laugh: It just didn't occur to me that this was a programming question in disguise, but I do agree with you.
Jeremy Falcon
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
I would like to know how you feel in this crazy moments?
I simply don't have these crazy moments.
dl4gbe wrote:
Why can't this classes handle null,nothing as empty string, e.t.c.
Becauase that is not its function. (and it is "etc." which is short for "etcetera")
dl4gbe wrote:
I think Microsoft did a very lousy job, designing their classes
Personally, I think they did an admirable job. I think you just don't understand the classes.
dl4gbe wrote:
It's useless time wasting to protect all the classes from illegal values passed to them.
You shouldn't be passing illegal values to classes. You should be writing code to protect classes from sending illegal values to them.
dl4gbe wrote:
But there are people who a crazy enough and create their own exceptions in code instead of handling them.
I create my own exceptions AND I handle them. Exceptions are for things that are exceptional. Unfortunately, it seems that what is exceptional for a good developer is run-of-the-mill for you. -- modified at 5:42 Tuesday 8th August, 2006
* Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
It's useless time wasting to protect all the classes from illegal values passed to them
:wtf: Sorry, but I find it scary that people like you are just allowed to program. Are you aware of what you are saying in your mail ? Now I understand why my mobile phone wakes up every night at 12PM and dials some random number, I think that someone like you programmed the software and threw the phone out of the window when the Date variable did not accept 25 as valid hour. I guess this discussion will go on in the soapbox. :rolleyes:
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
dl4gbe wrote:
I would like to know how you feel in this crazy moments?
I simply don't have these crazy moments.
dl4gbe wrote:
Why can't this classes handle null,nothing as empty string, e.t.c.
Becauase that is not its function. (and it is "etc." which is short for "etcetera")
dl4gbe wrote:
I think Microsoft did a very lousy job, designing their classes
Personally, I think they did an admirable job. I think you just don't understand the classes.
dl4gbe wrote:
It's useless time wasting to protect all the classes from illegal values passed to them.
You shouldn't be passing illegal values to classes. You should be writing code to protect classes from sending illegal values to them.
dl4gbe wrote:
But there are people who a crazy enough and create their own exceptions in code instead of handling them.
I create my own exceptions AND I handle them. Exceptions are for things that are exceptional. Unfortunately, it seems that what is exceptional for a good developer is run-of-the-mill for you. -- modified at 5:42 Tuesday 8th August, 2006
* Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
dl4gbe wrote:
It's useless time wasting to protect all the classes from illegal values passed to them
:wtf: Sorry, but I find it scary that people like you are just allowed to program. Are you aware of what you are saying in your mail ? Now I understand why my mobile phone wakes up every night at 12PM and dials some random number, I think that someone like you programmed the software and threw the phone out of the window when the Date variable did not accept 25 as valid hour. I guess this discussion will go on in the soapbox. :rolleyes:
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Nice answers: You should use an emulater for development and the PDAs for testing I use special hardware so often emulator is not usable. I have to communicate with a radio transceiver. Nobody is making you use .NET. I have to. It's not my decission what to use. It's the project managers choice. Here programming jobs are quite hard to find. I live in one of the 10 poorest countries in the world. Only 30 % have electricity, for example. :( We only have view computers. I would program the whole thing in eVC, but like said my boss things .Net is cool. I doubt that I do not understand the class system of .Net. I do understand them. But still I consider them as not good designed. I need fast development and not exceptions. And in my opinion .Net is not good for fast development. Unfortunatelly I program on small devices. I do not have tons of choices. :( Now I have to continue to program my medic appointments application. I have to go to a demo tomorrow. :( Chris P.S: I did not ask a programming question. I just got angry because of an unnecessary exception. And I ask how other react in such situations. But it seems that other people have tons of time to deal with all this unexpected things.
-
Nice answers: You should use an emulater for development and the PDAs for testing I use special hardware so often emulator is not usable. I have to communicate with a radio transceiver. Nobody is making you use .NET. I have to. It's not my decission what to use. It's the project managers choice. Here programming jobs are quite hard to find. I live in one of the 10 poorest countries in the world. Only 30 % have electricity, for example. :( We only have view computers. I would program the whole thing in eVC, but like said my boss things .Net is cool. I doubt that I do not understand the class system of .Net. I do understand them. But still I consider them as not good designed. I need fast development and not exceptions. And in my opinion .Net is not good for fast development. Unfortunatelly I program on small devices. I do not have tons of choices. :( Now I have to continue to program my medic appointments application. I have to go to a demo tomorrow. :( Chris P.S: I did not ask a programming question. I just got angry because of an unnecessary exception. And I ask how other react in such situations. But it seems that other people have tons of time to deal with all this unexpected things.
dl4gbe wrote:
I use special hardware so often emulator is not usable. I have to communicate with a radio transceiver.
Then a smart developer would simulate the data being transmitted so they could write the majority of the program using the emulator.
Jeremy Falcon
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items.
Because your code should be aware enough of its current state not to set an illegal value. You can't select item zero if there is no item zero. Selecting item zero is not the same as selecting no item at all.
Asynes yw brassa ages kwilkynyow.
-
Colin Angus Mackay wrote:
admiral job.
What, like in the Navy? ;) (Admirable BTW) Couldnt help picking you up on this after you picked him up on etc.
Truth is the subjection of reality to an individuals perception
Very good. :-D
* Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
What are you doing in case an unexpected exception hits you?
I think you missed the bigger question here... If the exception is unexpected, why would you write a handler for it? If you have a handler, the exception was, in fact, expected. No matter how often it happens, we never expect the unexpected.
dl4gbe wrote:
I mean Visual Studio does not react for view seconds.
React to what? I think the delays built into Visual Studio are simply hard-coded so that MS can claim that the next release will repsond faster. It's an upgrade thing.
dl4gbe wrote:
The Pocket PC is acting strangely.
You have one of those?
dl4gbe wrote:
And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again.
Well, you're an idiot for trying to select the first item in a combo box without first making sure there are items in the combobox. Are you new at this programming stuff?
Wait for ages until all the files are copied to the device again.
You knew the job was dangerous when you took it. I hope you bring a good book to read while your waiting for this process to complete.
dl4gbe wrote:
I would like to know how you feel in this crazy moments?
Hmmmm, I think it makes me want ice cream.
dl4gbe wrote:
To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions.
I bet your boss is pissed off...
dl4gbe wrote:
I hate this situations.
What situations? Where your boss fires you for destroying company property?
dl4gbe wrote:
I hate .Net because of all this useless exceptions it throughs.
It's valid to hate .NET for any reason you might be able to belch out. This is the first sane thing you've said.
dl4gbe wrote:
Why can't this Microsoft classes are not be more forgiving.
-
Nice answers: You should use an emulater for development and the PDAs for testing I use special hardware so often emulator is not usable. I have to communicate with a radio transceiver. Nobody is making you use .NET. I have to. It's not my decission what to use. It's the project managers choice. Here programming jobs are quite hard to find. I live in one of the 10 poorest countries in the world. Only 30 % have electricity, for example. :( We only have view computers. I would program the whole thing in eVC, but like said my boss things .Net is cool. I doubt that I do not understand the class system of .Net. I do understand them. But still I consider them as not good designed. I need fast development and not exceptions. And in my opinion .Net is not good for fast development. Unfortunatelly I program on small devices. I do not have tons of choices. :( Now I have to continue to program my medic appointments application. I have to go to a demo tomorrow. :( Chris P.S: I did not ask a programming question. I just got angry because of an unnecessary exception. And I ask how other react in such situations. But it seems that other people have tons of time to deal with all this unexpected things.
dl4gbe wrote:
I use special hardware so often emulator is not usable. I have to communicate with a radio transceiver.
If your boss is making you write 1) VB code, and 2) use .NET for a PDA, he should be shot, and you should be looking for a job, preferrably something that doesn't involve programming. Hey I know! How about becoming a long-haul truck driver. that way, you would have plenty of time to think about how you would rewrite Windows so that there's no pesky error trapping in the code.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
dl4gbe wrote:
What are you doing in case an unexpected exception hits you?
I think you missed the bigger question here... If the exception is unexpected, why would you write a handler for it? If you have a handler, the exception was, in fact, expected. No matter how often it happens, we never expect the unexpected.
dl4gbe wrote:
I mean Visual Studio does not react for view seconds.
React to what? I think the delays built into Visual Studio are simply hard-coded so that MS can claim that the next release will repsond faster. It's an upgrade thing.
dl4gbe wrote:
The Pocket PC is acting strangely.
You have one of those?
dl4gbe wrote:
And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again.
Well, you're an idiot for trying to select the first item in a combo box without first making sure there are items in the combobox. Are you new at this programming stuff?
Wait for ages until all the files are copied to the device again.
You knew the job was dangerous when you took it. I hope you bring a good book to read while your waiting for this process to complete.
dl4gbe wrote:
I would like to know how you feel in this crazy moments?
Hmmmm, I think it makes me want ice cream.
dl4gbe wrote:
To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions.
I bet your boss is pissed off...
dl4gbe wrote:
I hate this situations.
What situations? Where your boss fires you for destroying company property?
dl4gbe wrote:
I hate .Net because of all this useless exceptions it throughs.
It's valid to hate .NET for any reason you might be able to belch out. This is the first sane thing you've said.
dl4gbe wrote:
Why can't this Microsoft classes are not be more forgiving.
Chop, chop, chop. :)
-- Behold, for I am THE CORRUPTOR!
-
Hello What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again. I would like to know how you feel in this crazy moments? To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs. Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items. Why can't this classes handle null,nothing as empty string, e.t.c. I think Microsoft did a very lousy job, designing their classes. They should be much more forgiving. It's useless time wasting to protect all the classes from illegal values passed to them. One of the reason I prefer C programming. Instead of crashing the program,the api give back a status if a function worked or not. The program does not crash in most cases. All the additional QA effort is a big waste of time in .Net. And exceptions are in my opinion just a big waste of time and nerves anyway. But there are people who a crazy enough and create their own exceptions in code instead of handling them. :doh: Redmond should be bombed not Beirut. :( Chris :) P.S: My latest crazy piece of code to avoid an error. #if COMPACT_FRAMEWORK = false then dim i as integer #end if Just to avoid an error: unused variable -- modified at 3:54 Tuesday 8th August, 2006
dl4gbe wrote:
What are you doing in case an unexpected exception hits you? I mean Visual Studio does not react for view seconds. The Pocket PC is acting strangely. And than it comes on the screen of the PC: An unexpected exception! An ugly screen pops up claiming that you can't set a selectedindex of a combobo to 0 in case the combobox has no items, for example. Stop debugging, fix the error. Start debugging again. Wait for ages until all the files are copied to the device again.
Handle the exception. You have it backwards by the way. You can't select the combo to 0 when there are no items because MS isn't protecting the combo. Its not because they are protecting it. You can however select index -1 when no items are present as that's what's selected when there are no items. Think about it.. it makes sense. If there are no items, how can you select the first one? Your problem might be the way your thinking about it. Its zero indexed, so 0 == first item. If there are none, then you can't select one.
dl4gbe wrote:
To be honest, I get mad. Last year I through 3 Pocket PC's out of the window because of this cracy exceptions. I hate this situations. I hate .Net because of all this useless exceptions it throughs.
Well, they're not useless. It is a valid exception that your reporting with regard to the combo. What's useless is your reaction. Don't get mad, get even by understanding what it is your doing.
dl4gbe wrote:
Why can't this classes handle null,nothing as empty string, e.t.c.
This is two different cases. I for one am glad that string can be null or empty. Sometimes empty is valid and a check for null will determine this. Too bad I can't default my DateTime values to null, seems they special cased strings to provide this. So its not that they can't handle nulls as empty, its that they provide the ability for us to differentiate between the two as valid conditions depicting different states.
dl4gbe wrote:
Why can't this Microsoft classes are not be more forgiving. Why can't I set a selctedindex property to 0 in a combobox in case the combobox got no items.
Because your trying to select the first item and there are none. Select -1 if you want to select no item.
dl4gbe wrote:
I think Microsoft did a very lous