Answer Questions
gabr NetworkStream.Read performance
Hi All, a small question about some code we implemented: if ( rxSize > 0 ) { byte [] buf = new byte [rxSize] ; int total = 0 ; int offset = 0 ; int counterRead = 0 ; int counterSleep = 0 ; // put incoming bytes onto the input stream while ( ( !m_Terminate ) && ( rxSize > 0 ) ) { // stream = new NetworkStream ( socket, false ); if ( stream.DataAvailable == false ) ...Show All
vargasbo Combine Visual Studio with Access
Hi All, I have an app developed in Visual Basic 2005 connected to an SQL Server 2005 database (both Express editions). What I would like to do is create an Access .adp connected to the same SQL Server 2005 database. It seems however that Access (I have 2002) does not support developing against SQL Server 2005. Never mind, I can use Visual Studio or SQL Server management studio 2005 to make changes to the database, and I can connect the .ad ...Show All
Chris Ambler Changing the SerialPort.ReceivedBytesThreshold in the DataReceived Event?
Hi! I'm reading from a serialport. The messages sent from the serialdevice have different lenghts. Is it safe to change the SerialPort.ReceivedBytesThreshold in the DataReceived Event Is there any risk of loosing data Performance problems Sample code: void SerialComPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { string received = ""; if (SerialComPort.ReceivedBytesThreshold == 2) { ...Show All
Charles R SerialPort: Howto read all data on the port?
Is there an possible way to read unformatted data from the serial port Case: An radio reciever is connected to an -so called- HammCom modem, that is no more dan an interface that gives the digital representation of the recieved data. The only thing known on this point is a 1600 Bps rate. The rest of this protocol is to explore and do not meet any standard (stopbits, bytelength e.g.) When recieving nothing there is also a 'white noise' trig ...Show All
segaal How to tell if a column in DataTable (ADO.NET) is mapping to "image" type in SQL Server?
Hi, everyone. I am using .net framework 1.1, VS studio 2003 and MSSQL Server 2000. I tried to write codes to clear all the image data in several tables which are stored in a dataset named myDataSet. As I know, the image type in MS Sql Databse is maped to Byte[] in .Net. I used function GetTypeCode() to compare the column type with the standard Byte[], but it doesn't work. Any idea thanks. ...Show All
Imran007 Detecting if code executes after exception
Hi, I'm wondering if there is a uniform way to detect whether code is running after an exception is raised (within the .NET framework 2.0), transparent to the possible environment the code is running in (ASP.NET, Forms application etc). I have a Dispose method that that must behave differently when it's executed after an exception has been raised. This disposable class will be placed in a library that will be used by different types of applicati ...Show All
Ronnie Vernon xml data posting and retrieving in c#.net
hi i have to send xml data to the payment gateway which accepts xml data in partuclar format and returns the responce in xml format. I am new to payment gateway, i dont know how to send the xml data and retrive the information. can any one plz help me in this Plz give me any code sample Call GetResponseStream() on your HttpWebResponse object. This allows you to read the response data. You can either consume the response stream directly, ...Show All
Steve Wright system.objectdisposedexception
Hi, I have a multithreaded application that crashes with the following msg in event log ... EventType clr20r3, P1 smartserver2005.exe, P2 1.0.0.0, P3 43f6cc52, P4 system, P5 2.0.0.0, P6 4333ae87, P7 3ad8, P8 a5, P9 system.objectdisposedexception, P10 NIL. I have provided try catch block in all routines in the code & still the appl crashes with the above msg. Note that crash is not consistent for a particular se ...Show All
K::ot???ter 'System.TypeLoadException' -- PLEASE HELP
Hello everybody, I am new to this forum, this is my first post. I recently compiled a large project using vc++ express, but I get this error as soon as the programs starts: " An unhandled exception of type 'System.TypeLoadException' occurred in Unknown Module. Additional information: Type '<Module>' from assembly 'VectorArt, Version=1.0.2297.41533, Culture=neutral, PublicKeyToken=null' contains more methods than the current implementatio ...Show All
John Justice Mobile Agent
hi I read an article on mobile agent published on MSDN, the link to the article is given below: http://msdn.microsoft.com/msdnmag/issues/06/02/MobileAgents/default.aspx It also contains a code of sample agent implementation in C#.NET,which needs to be downloaded. I want to know whether i can run the application in two machine ie the client project on one machine and server project on another machine. If it is possible can anybody ...Show All
Dreamtec Installation of VS 2005
I am tired of trying installation of vs 2005. I did it succesfully but because of some iis error had to reinstall the stuff. After unistalling it completely (but in a haphazard order) now i cannot install it again. It fails while installing msxml parser 6.0. Thank you draykula. I tried searching the registries but it was a nightmare seaching all the registries manually. What I could do was Install the msxml par ...Show All
WinFormer Two-way communication using IPC
Hello, I've been reading up on IPC and looking at sample code, and I can't seem to figure out how to actually accomplish communication from a client to a server. I understand the concept of a server hosting a dll which contains a method that the client can call. However, how can the server also obtain a reference to the same object I want the client to be able to send a message that makes it to where the server can use it. To clarify my question ...Show All
Ayenew Wudu Calling a C++ dll from C# 2.0
We have a third party C++ dll (black box, no source code), which needs to be called from C#. The C# process, fills in some structure variables and pass it by "reference" to C++ dll, which calculates, fills the results back into the structure variables. Members of the structures are of type byte, long, double and arrays of double type. No string members. After I call the C++ dll, I just see NaN (not a number) in al ...Show All
Phil Smith 99 Problem: Forms, Multithreading, Socket and saving state of UI [Forms and controls]
Hi All, Hi, I have 3 questions that I have described here, I will be very much thankful to you if you can provide me some pointer for it. Chats, Forms, multi-threading We are building Chat like application using Forms and as a result our programming is becoming complicated to display messages received on different threads in the chat window (due to STA requirements of Forms). Is there a way to build Chat like app ...Show All
St&#233;phane Turcotte Which Certificate do I purchase for WSE 3.0 from Verisign
I am using WSE 3.0 and the usernameToken approach to secure my public webservice. I need to purchase a X.509 certificate to install on the server and then install the public key on the client. This is all working with a certificate I created with MakeCert.exe. When I ring Verisign to purchase a certificate non of the sales reps have any ideas about webservices or WSE. All they try and sell me is SSL. I will need to purchase a "Microsoft Authent ...Show All
