|
Well I think the best way to diagnose the problem would be to take you and your code over to one of your freinds machines, put in a breakpoint at the start of these lines, and step through the code. You will then know exactly what crashes the program, and you can then inspect the object using the debugger.
Hopefully this would shed some more light on the problem, and then you could create a solution.
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Thanks for the reply.
As I was sure that it's the "new TCPClient" failing to initialize (though it wasn't kind enough to actually throw an exception), I changed TCPClient to Socket and configured it to work with TCP. Now it works for my friends.
But still I have one friend, who has .Net Framework 3.5, and when he tries to open my program, it crashes. No exception, no nothing. ("ChatClient.exe has stopped working").
This is frustrating, not only that with WPF I have to convince my friends to stop working on their PCs for 30 minutes so .Net framework would install, but my prefectly good program doesn't work on some PCs. So much for the .Net compability...
Thanks.
|
|
|
|
|
What is persistent object and transient object in OOP? Could you give an example in C#?
Best regards...
|
|
|
|
|
Persistent refers to an object's ability to transcend time or space. A persistent object stores/saves its state in a permanent storage system with out losing the information represented by the object.
A non-persistent object is said to be transient or ephemeral. By default objects are considered as non-persistent.
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi,
i am trying to read a word document which has images and tables with formats and trying to paste them in a string type control that supports tables/images/hyperlinks.
Can anyone help me with the sample code or any pointers to this is highly appreciated.
|
|
|
|
|
If that component doesn't support Word's format, your out of luck. You need a component that can interpret what Word puts on the clipboard.
|
|
|
|
|
|
Hi
i have this code to insert some values to database (via TableAdapter and storedProcedures) :
int? id = 0;
int? number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;
this.adapter.Insert(ref id, number, name);
but my program has crash and then dispay an error :
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
when i check my database, i see that my code insert about 7000 record in my table which all records is the same!
why is occred and how to solve it ?
thanks
|
|
|
|
|
Your code is somehow calling itself, or in other words, a method your calling is repeatedly calling itself. This is called recursion. The technique is useful in some situations, but you haven't provided any kind of "bailout" to tell the code to stop calling itself.
You haven't provided enough information or enough of a code snippet to be of much help in solving the problem.
|
|
|
|
|
Hi Dave
here is my full code :
DsMyDbTableAdapters.t1TableAdapter adapter = new DataAccessDesigner.DsMyDbTableAdapters.t1TableAdapter();
int? id = 0;
int? number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;
adapter.Insert(ref id, number, name);
The t1TableAdapter object has been generated with dataset designer (in viusal studio 2005).
Note : when i trace my code and execute each line via F11, it's works good and insert only 1 record.
modified on Saturday, September 13, 2008 12:27 PM
|
|
|
|
|
No, it's not. What method is this code in?? Because, like I said, this code is somehow calling itself, which makes the method that this code is in come into play.
|
|
|
|
|
no, it is just this :
private void button1_Click(object sender, EventArgs e)
{
DsMyDbTableAdapters.t1TableAdapter adapter = new DataAccessDesigner.DsMyDbTableAdapters.t1TableAdapter();
int? id = 0;
int? number = int.Parse(this.textBox2.Text);
string name = this.textBox3.Text;
adapter.Insert(ref id, number, name);
this.button1_Click(null, null);
}
my tabletable has been generated via dataSet designer.
i think problem is in Adapter.Insert() method, do you believe this ?
|
|
|
|
|
hdv212 wrote: this.button1_Click(null, null);
It's that line. You are recursively calling button1_Click, and you're not bailing out (returning).
|
|
|
|
|
Ohhh!
thanks S. Senthil Kumar.
yes. it's works.
many thanks again.
|
|
|
|
|
I have two questions.
I have a file, this file is created when I save data from my program.
How to make icon for file?
How run my program when I double click this file?
Help me please!
|
|
|
|
|
|
I created icon for file and run my program when double click the file. Thank you very much.
|
|
|
|
|
nmhai83 wrote: I created icon for file and run my program when double click the file. Thank you very much.
That's why you voted one for my reply?
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
for validation:
I want to call a function which is in .js file,
function called in inline code by
<asp:textbox id="TextBox2" onkeypress="function name" runat="server" xmlns:asp="#unknown"></asp:textbox>
is it correct way to call ????
or any one tell me the write way to call function from javascript file
i already done following code runnable for keypress event,
<asp:TextBox ID="TextBox1" onkeypress ="
if (!((event.keyCode > 47 && event.keyCode < 58)||event.keyCode==45||event.keyCode==46||event.keyCode==110||
event.KeyCode==190||event.keyCode==8||event.keyCode==9))
{
alert('Please Enter Numbers only...');
event.returnValue = false;
}
else
{
event.returnValue=true;
}
" runat="server"></asp:TextBox>
Please tell me the way to call function in aspx inline code
or any fault in given code
|
|
|
|
|
please read this[^]
before you make a question
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi,
I have a windows application running in a LAN.
I have some reports developed by Crystal Report and a printer shared in the network.
but when I want to print in a system an error apperes about RPC and the print fails. but on the computer that is directed connetc to Printer that's OK.
Why?
Best wishes
|
|
|
|
|
Because you have some kind of problem with the installed printer driver for that printer. Sorry, it has nothing to do with your code.
|
|
|
|
|
String strSelectStatement = "SELECT EMP_NAME FROM EMPS WHERE EMP_TYPE ="MyCheckBox.Checked == true ? "1" : "0";
Error 4
Operator '==' cannot be applied to operands of type 'string' and 'bool'
And for your shock, it will work if you put true in qoutations to be "true"
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Sorry, it's just my IDE was feeling sick! It's working fine now!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
If you are going to continue to answer your own questions I'm going to have to get your message count adjusted or something.
Glad you could be of service to yourself - oops that could be a vision I could do without!
Never underestimate the power of human stupidity
RAH
|
|
|
|