|
Yep.
And like extra worse for a chat mobile application.
|
|
|
|
|
For a web service, yes. There are other scenarios where that's definitely not the case though (when the speed of update to clients is critical and the number of clients relatively low).
|
|
|
|
|
BobJanova wrote: There are other scenarios ...
Never for a "chat" service. That means humans. And with a low number even less point.
|
|
|
|
|
I'm writing a C# program that reads RSS feeds and displays them on a windows form... The program first worked fine, no problem, but suddenly it began to crash once I had navigated in the web browser control in the C# program. I got into some sort of knowing what causes the problem... When provide the web browser using WebBrowser.DocumentText = sting with large amount of data it does crash... so does anybody have a solution for that??
sb.Append("");
sb.Append(row.title);
sb.Append("
");
sb.Append(ASCIIEncoding.ASCII.GetString((byte[])row.desc));
desc_self_nav = false;
webBrsrRSSDesc.DocumentText = sb.ToString()
|
|
|
|
|
Is it the webbrowser that crashes, or the stringbuilder? Can you paste the text of the exception that it throws?
Bastard Programmer from Hell
|
|
|
|
|
Eddy Vluggen wrote: Is it the webbrowser that crashes, or the stringbuilder?
That's what the OP wants to know.
Eddy Vluggen wrote: Can you paste the text of the exception that it throws?
Obviously, if there was an exception, it would not be called a crash.
|
|
|
|
|
Shameel wrote: That's what the OP wants to know
Not so hard to find out, is it? Just put the contents of the StringBuilder in a (temp) string, and assign it to the browser on the second line.
Shameel wrote:
Obviously, if there was an exception, it would not be called a crash.
Thanks for the useful hint
Bastard Programmer from Hell
|
|
|
|
|
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
|
|
|
|