|
Does anybody know to work with this junk of help system Microsoft made? I search for "apples oranges cucumbers" and I get 500 results of pages that match ANY of the terms, not ALL the terms as one would normally surmise. No wonder all Microsoft's search tools get a beating from Google. This is less functionality that friggin Notepad! GRRRRRRRRRRRRRR.
^
|_______ and hey, I'm not angry at you ::- D. Maybe it's my fault and I don't know how to use it. Does ANYBODY know???
|
|
|
|
|
Hi,
I've had this WTF moment too and have often wondered why a document explorer search was a lot less precise than I intended it to be.
Q) Is the search term 'apples oranges pears' is equivalent to the term 'apples AND oranges AND pears'?
A) It depends!
Explicit use of the AND operator will give hits that contain all three keywords. The problem when AND is merely implied is that a setting in Visual Studio (Tools..Options..Help..General..Include partial matches in local search results) allows partial matches, in effect allowing 'apples OR oranges OR pears'. Unchecking the box in my VS C# Express 2005 has restored sanity to the world of boolean logic.
Alan.
|
|
|
|
|
*laugh* nice reply Alan. Thanks! It worked! ::- D. Pfew. So it was me who was stupid and didn't investigate well enough the options. Thanks again for showing the way and getting me rid of one of my greatest frustrations EVER.
|
|
|
|
|
I have an executable that is crashing in Release mode for a customer.
I have been reading and have figured out from articles like this:
Do we have to include .pdb files in the final build?
That I need to generate a pdb file for my release and archive it (How to do this: Build, Configuration, Release. Then Project, Properties, Build Tab, Bottom Right in VS2005 find grey button "Advanced...". Press it then set Debug Info drop down list to "pdb-only").
Then when the customer has a crash he needs to email me the .dmp file generated by Windows How to read the small memory dump files that Windows creates for debugging
Now I have to put the two together in Visual Studio and can see where it crashed etc. The problem is I can't find any info on how to actually to do that!
I have to say there are few articles on this subject and it's a mess.
Many Thanks...
modified on Monday, September 21, 2009 4:48 AM
|
|
|
|
|
Hi,
You actually want a Dr Watson crash dump file from your customer. The pdb file allows the data in that dump to be cross referenced to the source code.
Rather than have me possibly mislead you by talking about something I don't fully understand, can I refer you to the Stack Overflow forum where a similar question was raised yesterday. The links to articles by John Robbins of Wintellect look to be very useful.
link[^]
Alan.
|
|
|
|
|
Yes I saw that post and the artiles. Unfortunately the John Robbins' Blogg and his posts are not clear or simple to follow. It took me a long time just to figure out what I wrote in the post above. I have come across no instructions for putting the two files together in Visual Studio. Eg John Robbins "PDB Files: What Every Developer Must Know" fails to even mention .dmp files which the other blog tells us are the key which makes them useful for debugging.
|
|
|
|
|
I'll second any article by John Robbins. He's also written a great book. Debugging Microsoft NET 2.0 Applications[^] (It doesn't matter that it says 2.0, it's still totally relevant)
Once you have the crash dump and the pdbs you can load them into a tool called WinDbg (which comes with Debugging tools for windows[^]) and figure out the cause of the crash. To get the crash dump you'll need a script called adplus (which also comes with debugging tools for windows) which you can run and attach to your app and when it crashes it will create the dump.
Read Johns articles and/or that book and you'll understand a lot more. It's quite a complex topic though so allow plenty of time.
Simon
|
|
|
|
|
|
Half an hour later and I am still trying to figure out what the customer needs to do to collect the dump files. I don't want the customer to have to run Dr Watson all the time in case my app crashes. These windows .dmp files do not look to be enough. This ADPlus seems to be something I need the customer to install in nine complex steps. It's a nighmare.
modified on Monday, September 21, 2009 6:03 AM
|
|
|
|
|
Yes, ADPlus is a nightmare. From the sound of it you would want to use it in crash mode. You run it and attach it and when it detects a crash it creates a dump. I've never used it on a customers machine, I've always been able to replicate the bug on test machines running release mode binaries.
I think Dr Watson might be an easier way of doing the same thing, but to be honest I've never tried it so you'll have to experiment.
Check out this article on configuring Dr Watson to generate crash dumps[^].
Also, just in case you might want to bookmark this article on disabling Dr Watson[^] for when you want to turn it off afterwards.
And here's a description of Dr Watson[^].
Simon
|
|
|
|
|
hi
how i can connectiong to internet IN my program.
i must enter username & password & my asp number in my program and then conencting to internet.
plz give me small smaple;
|
|
|
|
|
M M A wrote: i must enter username & password & my asp number in my program and then conencting to internet
Who is stopping you???
Jokes apart, you need to give us the details what you need to do.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have a class with a scientific members in physics. I want to let the user to enter a text in a textbox like "x1+x2*3+x3/4" and i want to calc this values in run-time.
(Lets say that i have properties that called "x1", "x2" and "x3".)
How can i do it?
|
|
|
|
|
Have a look at Inside the Mathematical Expressions Evaluator[^].
bonzaiholding wrote: I want to let the user to enter a text in a textbox like "x1+x2*3+x3/4" and i want to calc this values in run-time.
(Lets say that i have properties that called "x1", "x2" and "x3".)
You can search the input string for the variables ("x1", "x2", ...) and replace them with their corresponding values from your properties. After that, you can pass the string to the Mathematical Expressions Evaluator and get the result.
Nuri Ismail
|
|
|
|
|
Thanks for all of your answers.
|
|
|
|
|
You are looking for a Math parser. You can find lot of related help on google.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Sigh, I remember having to do this at uni....RPN anyone? Seriously though look up Reverse Polish Notation and stacks. It might help...it might not I am not very helpful am I? I just went on a nostalgia trip is all because of your post! thank you
Cads
|
|
|
|
|
|
private bool Connect()
{
string DB_Path= @"E:\Office Project\salary project\AttendanceSummary.csv";
string Con_Str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DB_Path + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\";";
con = new OleDbConnection(Con_Str);
con.Open();
string query = "SELECT SNO, ECODE, NAME, PRESENT, ABSENT, OFF, LEAVE, LWP, OTHOURS FROM [AttendanceSummary$]";
OleDbDataAdapter oda = new OleDbDataAdapter(query, con);
DataSet ds = new DataSet();
oda.Fill(ds);
dataGridView1.DataSource = ds.Tables[0];
dataGridView1.Update();
if (con.State == ConnectionState.Open)
{
MessageBox.Show("Connected");
return true;
}
else
return false;
}
====>>>> this code is working fine...........Problem is that when i am connecting other file "XYZ.XLS" which is having some text heading in the Top Rows................ its showing error ....... pls kindly help me
Thanks in Advance.( sorry if any mistake i am very new to programming)
|
|
|
|
|
Thanks I GOT 
|
|
|
|
|
Hey guys
I'm trying to communicate with an external device(proximity card reader) over TCP/IP.
At the moment im able to send the device a packet and receive a reply from the device. The problem is, that when i try to send a second packet I get an IOException at NetworkStream.Write(Buffer, 0, Buffer.Length); stating "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."
This makes no sense to me, the device does not close the connection, I am 100% sure of that.
Here is the code of my test program.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using System.Threading;
namespace NewBadgerTest
{
public partial class Form1 : Form
{
TcpClient BadgerConnection;
public Form1()
{
InitializeComponent();
try
{
BadgerConnection = new TcpClient();
BadgerConnection.Connect(IPAddress.Parse("10.0.0.100"), 1111);
this.Text += " - Connected";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error while connecting", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void button1_Click(object sender, EventArgs e)
{
if (BadgerConnection.Connected)
{
byte[] Buffer = new byte[]
{
161,
15,
89,
1,
89,
3,
102
};
NetworkStream ns = BadgerConnection.GetStream();
ns.Write(Buffer, 0, Buffer.Length);
ns.Flush();
string Reply = GetReply(BadgerConnection.GetStream());
MessageBox.Show(Reply);
}
}
public string GetReply(NetworkStream ns)
{
StringBuilder result = new StringBuilder();
try
{
byte[] Buffer = new byte[1024];
while (true)
{
if (ns.CanRead)
{
int numberOfBytesRead = 0;
while (ns.DataAvailable)
{
numberOfBytesRead = ns.Read(Buffer, 0, Buffer.Length);
result.AppendFormat("{0}", Encoding.ASCII.GetString(Buffer, 0, numberOfBytesRead));
}
if (result.Length > 0)
{
break;
}
}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return result.ToString();
}
}
}
For simplicity's sake the part where a reply is read is not in a different thread although when I do it like that the result is the same.
Can someone please shed some light on what might be the cause of this problem? Cause I'm running out of ideas and things to try.
Thanks
<Update>
I've been playing around with this more and got two new pieces of information.
As pradnya_k suggested I downloaded process explorer and realized that the connection dies after I call NetworkStream.Write() sometimes it dies even before I get my packet from the device I'm talking too. Then the exception only gets thrown when I try to call NetworkStream.Write() again whice is exactly what was said in some TCP articles I've read.
The second thing I was able to figure out was that the WSE error code that gets thrown is 10054: WSAECONNRESET
WSAECONNRESET
10054
Connection reset by peer.
An existing connection was forcibly closed by the remote host. This normally results if the peer
application on the remote host is suddenly stopped, the host is rebooted, the host or remote network
interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the
SO_LINGER option on the remote socket). This error may also result if a connection was broken due to
keep-alive activity detecting a failure while one or more operations are in progress. Operations that
were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.
</Update>
Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL
you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
modified on Monday, September 21, 2009 8:32 AM
|
|
|
|
|
Hi,
You can download Process Explorer from following link.
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
It will show you all the TCP/IP connection.
You can check here if the connection is getting closed.
Initially the connection status will be ESTABLISHED but if the device is closing it, the connection will go to CLOSE_WAIT state.
You can also use Smart sniffer to check the communication between your machine and the device.
Thanks
|
|
|
|
|
Does your device has any setting related to session timeout or keep alive time?If there is such a setting then the reader must be closing the socket when that time interval is elapsed.
|
|
|
|
|
Anyone please tell me how to add password column to datagridview in C#.
thanks.
|
|
|
|
|
You need to convert the password column into a template column.
Then using the smart tags, edit the template column and change the display of the textbox based on the type of data it is holding.
|
|
|
|