|
Shameel wrote: Obviously, if there was an exception, it would not be called a crash.
Not true. If he hasn't handled the exception it would still crash, but there would still be an exception.
|
|
|
|
|
Pete O'Hanlon wrote: but there would still be an exception.
Correct, but in case of a crash, the OP would not be able to post the exception here, and that is what I was pointing out to.
|
|
|
|
|
I'm pretty sure that an unhandled exception would be written to the event log if it crashed an application. It's been so long since I've written an application where I didn't have a top level exception handler, but I'm fairly certain this is the case.
|
|
|
|
|
Non curo; if he's working with computers, then he should be able to tell a bit more than "it crashed". Your basic helpdesk-employee will tell you that there are different kind of crashes - should I simply assume that it generated a BSOD?
Most people here are referring to "exceptions" when they're talking about code and "crash".
Bastard Programmer from Hell
|
|
|
|
|
Ash Zidan wrote: but suddenly it began to crash once
And that means what exactly?
What exactly is the evidence that you see?
|
|
|
|
|
Try storing the content of the StringBuilder to a temporary html file and use WebBrowser.Navigate method to load the file. This will help you in isolating the real culprit - the StringBuilder or the WebBrowser.
|
|
|
|
|
PropertyDescriptor.GetValue(object component);
what is this component. I do not get. Can someone please get an example.
Also why PropertyInfo.GetValue(object, objects[]) needs to have parameters. Why we cannot have values through reflection directly. Can someone give me example of propertydescriptor.GetValue(object component), how to use it. I do not find much on msdn.
|
|
|
|
|
kashme wrote: what is this component
It's an abstract description of a property[^].
kashme wrote: Can someone please get an example
At the bottom of that page are the usual examples.
Used it for example, when implementing a GetProperties [^] method. A neat way to provide properties that a PropertyEditor can understand while passing an array wrapped in a ICustomTypeDescriptor[^].
Bastard Programmer from Hell
|
|
|
|
|
Hello,
I am writing unit test to a method named methodName for example. The tested class extends another base class.
The tested method uses a method that is implemented in the base class, But i want to use Mock in order to Mock this method.
How can i do it?
|
|
|
|
|
Something like this;
class MyBaseClass
{
public virtual string methodName()
{
return "This is base calling";
}
}
class MyTestedClass: MyBaseClass
{
public override string methodName()
{
return "This is the testing value calling";
}
}
class MyTestedClassMock: MyBaseClass
{
public override string methodName()
{
return "Whaahaha, I'm not the real one, just a mock-stand in.";
}
}
MyBaseClass someObject = new MyTestedClassMock();
MessageBox.Show(someObject.methodName());
Bastard Programmer from Hell
|
|
|
|
|
hello guys... How can I access system databases in which <b>The Machine</b> stores some of the info we can use it. For example <b>Win32_OperatingSystem</b>. Now I can access 'LastBootUpTime' from this database.
The question is:
how can find and view this database (and other related databases) in sql server? thnx for any input
|
|
|
|
|
|
Hi,
I have two multiline RichTextBoxes, no wrap (horizontal/vertical scrollbars)
Is there a way I can sync the scrolling so when I scroll one, the other one scrolls?
Thanks
|
|
|
|
|
A simple search in google gave this[^] link.
|
|
|
|
|
Yes thank you, found it also.
was seeking for an another way.
but this way is working good also
|
|
|
|
|
If you found it useful, why not mark it as answer?
|
|
|
|
|
I have recently obtained the files for the old Dr Dobbs Challenge and wanted to use them to help my 13 year old grandson learn programming. All other sources of help seem to have dried up. The project file indicates Visual Studio # 2008.
I downloaded/installed VC# 2008 and Silverlight but VStudio won't load the project and reports incompatibility errors. I should say I also have VS2005 and VS2010 (C# and C++) as well as AVR Studio 5 (uses VS2010) on the computer, could there be a conflict?
Please help! what do I need to change.
|
|
|
|
|
I think you may have to be a little specific about the errors you are getting. VS2010 should open it and offer to convert the code for you but you may have to manually correct some things. If possible I would search for other similar examples to download that are a little more recent. Maybe google can assist you.??
vbmike
|
|
|
|
|
I can't believe I need 2010, it wasn't released at the time of this project.
The actual error message is two lines, " The project file "C:\~~~~~ .csproj' cannot be opened" followed by "The project type is not supported by this installation"
NOTE: I replaced the path with ~~~~~ .
This is a standard installation of VS2008 Express and Silverlight as specified.
|
|
|
|
|
You might also want to take a look at Small Basic. The tutorial is great for young beginners.
"You get that on the big jobs."
|
|
|
|
|
I have already exposed him to 6+ months of Small Basic and he has done well. I figured it was time to move on. Small Basic is good but in a limited way and it certainly isn't like any BASIC I grew up using. I guess that's why it's called "Small Basic". If we continue with BASIC it will probably be Dark Basic.
|
|
|
|
|
Try SharpDevelop, it will generally open VS project/solution files and it's free and good.
|
|
|
|
|
Thanks, I will look at that.
However the original project was for VC#2008 so i am hoping i can resolve the problem (with help).
|
|
|
|
|
cgb143 wrote: VStudio won't load the project and reports incompatibility errors.
Can you post the errors here? Or a screenshot?
Alternatively, you can try opening it with VS2010.
|
|
|
|
|
The actual error message is two lines, " The project file "C:\ <path> \ Dr. Dobb's Challenge2.csproj' cannot be opened" followed by "The project type is not supported by this installation"
|
|
|
|