|
Thank you Asad..
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
|
|
|
|
|
Hi Asad,
Something else i've noticed, is that WSE has its own limitations.
Therefore I had to add the following :
<br />
<microsoft.web.services2><br />
<messaging><br />
<maxRequestLength><br />
262144<br />
</maxRequestLength><br />
</messaging><br />
</microsoft.web.services2><br />
Cheers
Jubjub
"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)
|
|
|
|
|
Hi all,
I am trying to develop a Wireless Network Monitoring tool. I have seen WRAPI and Rawether, these things doesn't work for me. Because WRAPI needs some of the header files that is for only MSDN subscribers only, and Rawether for .Net, they have given 4 drivers as options to be chosen by User. But none of the driver seem to be present on my system. I am using Windows 2000 professional. I am using 'C' API's as Dll, I have taken some of the OIDs by querying using CreateFile and DeviceIoControl, the IOCTL code which i am using in DeviceIoControl is IOCTL_QUERY_GLOBAL_STATS. This is working very fine for some of the OIDs but when i try to use OID_802_11_STATISTICS,OID_802_11_RTS_THRESHOLD. The DeviceIoControl returns an error 31 ie Device attached is not functioning.
My questions are,
1. Is there a way to make Rawether Work.
2. Why this DeviceIoControl returning an error 31 for certain OIDs.
somebody help me please
With regards,
Mohan
|
|
|
|
|
im wotking on an application of remote desktop sharing. when i get an image of the desktop, it is frist saved at a temporary location. but it is not being transferred on the network. im using sockets. the application works fine on local machine.
|
|
|
|
|
No-one on the world will be able to help you with this amount of information.
It's like going to a doctor and telling him "I'm ill. What can I do?".
What's the problem exactly?
How do you send the image via sockets, for example? What are you doing different when you're on a local machine?
mav
|
|
|
|
|
Hi,
I am writing a C# component to make files associate with .exe and applications.
The first part, with .exe is done by adding "shell\open\command" with the path of the .exe.
But how about with applications?
I want to know what has an application(e.g.winrar, winamp) with installer done to the registry.
What information about the application is need to write a C# component to register a file extension associating with the application?
Thanks
|
|
|
|
|
Run regedit. Open HKEY_CLASSES_ROOT. All those first entries are file extensions, you can see there what info is stored to make it work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey all,
I'm sending a large number of JPGs in a sequence over a LAN via a socket. I'm getting the data across the wire no problem. The problem is, all my files are getting broken during transmission, and I don't know how to reassemble them. For them to get broken up is only natural b/c of the underlying network system... So, how can I reassemble my files on the other end of the wire??
|
|
|
|
|
Well... are you using TCP or UDP?
UDP has no connection or flow control. It simply sends data and if the data gets lost, there is no way of getting it back. Packets might even "switch" position during transit.
TCP has builtin functionality to prevent packet loss during network transit. That means, if you sent something over the network with TCP, every byte WILL arrive (in your app) in the same order it was sent - or you get an exception because the connection was lost without proper "FIN"-procedure.
If you ARE using TCP, your software is doing something wrong because with TCP, lost packages can't happen (with the usual exceptions of connection loss and exploding power supplies etc.)
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Ah.. perhaps my first explanation was poor.
I am using TCP. I am not losing any packets. I just need a way to deliniate between the end of one file and the beginning of another. If memory serves (its been a long time since my networking course..) I need to be using a protocol of some sort?
SO... I guess i'm asking what's the best way to go implementing a protocol in the application layer, or is this even the correct approach??
Thx!
|
|
|
|
|
i need to create a matrix that contain an integer value 1-7, another integer value 1-20, and 24 chars.
How can i struct this matrix?
like this my_matrix[6,19,23], but is it correct?
|
|
|
|
|
|
Sasuko wrote:
like this my_matrix[6,19,23], but is it correct?
No, you want to do this:
my_matrix[8,22,25]
Now you can access items starting at 1, and ending at 7/21/24 and just ignore the items that exist in the zero index of each array.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have a try/catch block around my entire application ( in my static void main ) which catches all errors and writes them to a log file. Sometimes, this fails, and instead an ugly error/no log file is created. However, I've had some clients send me a log file that is obviously not generated by me, and it seems that some other program is catching my errors and logging them for them. Is there a reason my generic try/catch fails ? Can some other program supercede it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Can I ask you something that I asked my self many time?,What if an error has been found in the try block and then the control goes to the catch block and for the bad luck another error happened in the catch block (As the try/catch doesn't have a parent try block)?,and :
Christian Graus wrote:
and instead an ugly error/no log file is created
this may be because of this,accourding to no file creation permission.
And also what if this happened in the Finaly block itself ?(This is going to be executed whatever happened).
|
|
|
|
|
Yeah, I discovered this morning that my static file instance can be accessed in my single threaded application in such a way that it is still null, while it's been set to open the file already a moment before ( so I get a cannot open file exception ). I have to work out why this is, but in the meantime, I think a rethrow here has to be the problem. The thing is, no error log is being created at all for my client, and the exception they catch and report is not generated by code within my catch block.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is it giving him an exception or its somehing wrong in your code?
|
|
|
|
|
I'm not sure what you mean ? There's obviously an underlying bug that I need to fix, or there would be no exception. However, the other issue I'm trying to pursue is why the user doesn't get a polite error message and a log file to help me diagnose the problem, although some clients are providing a stack trace that obviously did not come from my log file and reporting a normal, ugly exception.
I think the issue I just found with the double initialised file object is the cause, although it's got me beat why that is happening.
public static void ForceLog(string Message)
{
if (debugFile == null)
{
debugFile = new StreamWriter(@"c:\RDC Error Log.txt", true, System.Text.Encoding.ASCII);
debugFile.WriteLine("Program started - " + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString());
}
debugFile.WriteLine(Message);
debugFile.Flush();
}
This is supposed to initialise the log file on first write, and report that logging has started. Every other time, it should just log another message. Yes, the file gets closed when the program closes.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
I'm trying to pursue is why the user doesn't get a polite error message and a log file to help
What about replacing this method of the log by another that is displaying the error in a message boxes,at least you may know that the problem is in the creation of the log file or not.
Christian Graus wrote:
providing a stack trace that obviously did not come from my log
May you try to use it to know the error or what is going wrong in your app,before you try to get rid of it.
Christian Graus wrote:
debugFile == null
Try to use File.Exists(); for testing.
|
|
|
|
|
The config file allows the user to set if the error comes up in a message box, or goes to the log file, or both.
LongHC wrote:
May you try to use it to know the error or what is going wrong in your app,before you try to get rid of it.
I'm trying to get rid of the problem with the log file, I'm not trying to swallow an error without fixing it. As far as I am concerned, the fact that the log file is not generated is a seperate error, the one I am trying to fix. I think I have it, with what I discovered this morning. I've already fixed the error that was being reported, which is why I am focusing now on the error with my error logging.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I don't know if it's better, but take a look at the Application.ThreadException event. That's the one I use for catching and logging all unhandled exceptions and to give the user the option to restart the application.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Brilliant, thank you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
BTW., I've seen a discussion on try/catch not catching exceptions occurring in a form, although the matching ShowDialog() was enclosed in a try/catch block.
This doesn't happen when you run the application from VS, but when your client executes the application without VS, the execeptions won't get caught
The solution is to add a ThreadException handler in the class showing the dialog and to re-throw the exception there.
Don't ask me why this has to be done exactly (someone from M$ tried explaining in a newsgroup), but it's working.
Regards,
mav
|
|
|
|
|
Maybe this is implied by your answer:
Is there a way to programatically shutdown and restart a .Net application? If so, how do you do it?
Gary Kirkham
Forever Forgiven and Alive in the Spirit
He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot
Me blog, You read
|
|
|
|
|
Gary Kirkham wrote: Is there a way to programatically shutdown and restart a .Net application? If so, how do you do it? Well, what you do is start another instance of the application before shutting down the current instance.
When I trap the exception, I display a dialog with all the exception details. When the form is closed, if a checkbox is checked, I start another instance of my own application, and then shut down the application. This is my handler for the Close button on the exception report form:
private void btnClose_Click(object sender, System.EventArgs e)
{
if(chkRestart.Checked)
System.Diagnostics.Process.Start(Application.ExecutablePath);
Application.Exit();
DialogResult = DialogResult.OK;
}
I hope this helps!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|