-
- Moving data between add-ins (System.AddIn)
by Jeroen Vos
- 5 Replies
- Last post
by Jeroen Vos
- I have a host application with 2 types of add-ins, ImportModule, and ExportModule. The ImportModule starts a thread that reads data from files. This data is put in a list of Reading items. This list is returned to the host using an event. The host then passes this data to an instance of an ExportModule which in turn exports it to a database or a webservice or any other output format (depending on
-
- 2.0 Differences in GC.Collect?
by R.D.
- 5 Replies
- Last post
by R.D.
- Are there any differences in GC.Collect between the 1.1 and 2.0 framework that can keep all objects available for GC from being collected
I have a COM application that detects when a .NET client is running in the application and if so, creates a .NET object I implemented that has its own "Collect" member function. The .NET object does this:
GC.Collect(GC.MaxGeneration);
GC.WaitF
-
- TcpListener getting 10042 error code
by Htorrejo
- 6 Replies
- Last post
by RizwanSharp
- When creating a TcpListener object I am getting error code 10042. Below is the code I am using.
IPHostEntry localMachineInfo = Dns .GetHostEntry( Dns .GetHostName());
IPEndPoint localEP = new IPEndPoint(localMachineInfo.AddressList[0], System.Convert.ToInt32(tbPort.Text));
TcpListener listener = new TcpListener(localEP);
listener.Start();
When debugging this code I notice tha
-
- How to read soapAction from WSDL file?
by BaudelaireCh
- 2 Replies
- Last post
by BaudelaireCh
- I managed to get most information I need from the WSDL file using the ServiceDescription class library but I am stuck trying to get access to the soapAction. What is the best method in C# to get access to this What i want is to identify the soapAction for each operation but the returned operation for each porttype doesn't seem to have any way to access this (I expected something like "operati
-
- Serializing .NET Classes
by OlegSav
- 5 Replies
- Last post
by OlegSav
- Hi i want to create and serialize a .NET Process class is it possible Simply i dont want to recrate a custom process class to hold the .Net process class properties and methods.
-
- Cannot execute oracle procedure.
by Luis Esteban Valencia Mu&a
- 3 Replies
- Last post
by Sarah Parra - MSFT
- System.FormatException was unhandled by user code Message="Failed to convert parameter value from a String to a Decimal."
Can somebody help me, I have looked very slow at each line of code and I dont find whats the problem.
The company who did this procedure must be kidding
protected void btnGuardar_Click( object sender, EventArgs e)
{
OracleConnection o
-
- Closing the serial port
by Hooper
- 10 Replies
- Last post
by Carsten Kanstrup
- Hi,
I have an app that is using the SerialPort class and I send and recieve data via the
DataRecieved event. Everything works fine as long as I let it run to completion.
I have found though that if I try to stop the serial communication while it is still running, it will not.
I use,
m_serialPort.Close()
m_serialPort being the SerialPort class.
This is called from my mai
-
- Performance issue
by yasser azeem
- 5 Replies
- Last post
by CommonGenius.com
- Consider a column of DataTable having the value
drow["UserName"] = "Administrator"
which statement is best in terms of performance
1 . (string)drow["UserName"]
2. drow["UserName"] .ToString()
3. Convert.ToString( drow["UserName"])
-
- Compile error of proxy class - naming conflict
by Oskars Ozols
- 2 Replies
- Last post
by Sowmy Srinivasan
- I have two methods in my web service:
Register()
RegisterCompleted()
Arguments and other methods doesn't matter - this is only test case. Proxy class Reference.cs was generated without errors with VS.NET 2003. VS.NET 2005 SP1 have started to use xxxCompleted template for event handlers and now it returns error in compile time:
Error 50 The type 'XXX' already contains a de
-
- Short To Long File name
by Anu Viswan
- 7 Replies
- Last post
by Tall Dude
- Hi
How do we convert Short (dos file name ) to long file name
ie, suppose file name is longer than 8 , it gets truncated , so is there anyway to get the orginal name out of the short name
thanks
-
- DataReceived not Invoked in SerialPort
by OmarMallat
- 14 Replies
- Last post
by Carsten Kanstrup
- Having:
Microsoft windows server 2003
Visual Studio 2005 professional edition
Barcode Reader connected to COM1
when I open Hyper Terminal: 9600, 8, 1, None, I got the barcode if I pass any item in front of the Barcode Reader.
In visual studio 2005 Pro, I open serial port with same parameters but the DataReceived Event was not invoked.
I try DTR, RTS, timeout, read buffer
-
- Is CLR Hosting is the right choice for me?
by Vladimir .V.
- 13 Replies
- Last post
by nobugz
- Hello,
The software product we are developing needs to do the next thing:
After intallation of the product, all .net applications on current server should use our version of System.Xml instead of the original version from Microsoft.
Our DLL is a kind of a envelope, that wraps the original DLL, exposes all methods, interface and classes - but in some cases performs different actions. T
-
- serialization using sockets
by expressdual
- 10 Replies
- Last post
by expressdual
- hi ,i am developing an application using sockets to comunicate between client and server to transfer xml document and i decide to use serialize/desirialize : client: public class MyXmlExample { public int a; public string s; public MyXmlExample() { a = 0; s = ""; } } //Enviar XML MyXmlExample ex = new MyXmlExample
-
- DropDown Population Thru JavaScript
by Rajeev.John
- 5 Replies
- Last post
by Figo Fei - MSFT
- Haiii All,
This quesdtion is regarding Javascript. In one of my .Net application I have a DropDown list, that is populated through javascript. The DropDown holds values from 1 to 5000. Now it seems that, the time taken to populate this is almost very high(it takes around 2 min.) If somebody can help me to reduce the time taken to do this opeartion, or some other ideas to solve this pro
-
- Microsoft .NET Framework 3.0: x86 (KB928416)
by Anonymous553641
- 7 Replies
- Last post
by sinusoid
- My computer is using Windows XP Home and I can not get Microsoft .NET Framework 3.0: x86 (KB928416) update to install. I have downloaded this all by itself so it isn't conflicting with anything else. Can someone tell me what I need to do to get this update to install
Thanks
-
- How to check if an object exist
by TexasOeb
- 6 Replies
- Last post
by TexasOeb
- I have a form that I created after a "press the button" event. However, anytime I create the form, the previous one stays so I have as many form as I "press the button". How can I destroy (close) the previous Form before creating a new one Code to follow
Form1 Form2 = new Form1 (tempCbStations, "INBOUND" , Flag);
Form2.Show();
WindowState = FormWind
-
- Re-usable data adapter classes ?
by MickJ27
- 1 Replies
- Last post
by cverdon
- Hi all,
I'm defining a web service which will take data and pass it safely into database stored procedures. It seems odd to create, define, use and then dispose of DataAdapter, DataTable, Command, etc classes only to do it all again in the other methods and I was looking for advice on the best way of doing this (and the pitfalls others have found).
I know the connection will be reused from t
-
- Migrating Web Services from .NET2 to .NET3
by czaval
- 2 Replies
- Last post
by czaval
- I have a couple of Web Services built on .NET 2 environment.
As I have understood, in .NET 3 the WEB Services where implemented with much more performance optimizations.
I am thinking about migrating the Web Services to .NET 3 for optimizing the responce times. What should I do to accomplish the migrating and how much this process is "painfull"
Thanks,
-
- XML schema validation with Web services.
by ycmahesh
- 2 Replies
- Last post
by ycmahesh
- I'm getting following errors in my schema validation . Error Message: The 'TimeSeries' element is not declared. An error occurred at , (1, 2). The ' http://alx.ml.com/mapsws :BoxColor ' attribute is not declared. An error occurred at , (1, 163). It would be great if some one could tell me what Im doing wrong. It works fine , if I remove the targetnamespace and xmlns elements from schema file and
-
- System.IO.Compression
by There is only one
- 3 Replies
- Last post
by nobugz
- Hi,
I have an application that currently uses J# to expose the java library java.util.zip.
However recently there was an announcement that J# will be retired around 2017.
My question is simply, will System.IO.Compression be enhanced to supported the zip format in the future
Even if it is just your opinion on the likelihood of this happening your help would be high
-
- System.Runtime.InteropServices.COMException
by Rao Mallala
- 6 Replies
- Last post
by Feng Chen - MSFT
- Hi All,
I am using C# 2005 to integrate with Microsoft word 2000.
I am using Microsoft Word 9.0 Object Library to create Word object.
In my word document I have around 559 bookmarks. In the program based on various conditions I am replacing the Bookmark names with exact values which are retreived from database.
In my code
Word.Bookmark.Range.Text = "Some value&q
-
- Database application
by Hassan80eg
- 3 Replies
- Last post
by Hassan80eg
- Hi all,
I wanna build a small desktop application using C# 2.0 and .NET Framework 2.0
the main purpose of this application to connect to database of type OLEDB ( MS
Access ) this database located on a pc member of a local LAN no faremwork
installed on this pc here the pc holding this database considerd as the server i
wanna build clients to connect to this database of type M
-
- LinkedList: How to use Contains efficiently?
by Chryso
- 5 Replies
- Last post
by TaylorMichaelL
- Hello So I have the following: private struct BuffStruct { public int spellIndex; public int endTime; /*public BuffStruct(int sI, int et) { spellIndex = sI; endTime = et; }*/ } // The structur used for buff / debuff management private LinkedList<BuffStruct> buffList = new LinkedList<BuffStruct>(); So buffList is a linked lis
-
- MDbg sample code does not close PDB files or release file handle/lock?
by davidt1234
- 3 Replies
- Last post
by Rick Byers - MSFT
- Hi,
I'm trying to use managed code from the MDbg sample to read source filenames and line numbers from PDB files. The problem is that something is opening the PDB file, establishing a file lock and then not closing the file again. Consequently I cannot overwrite the PDB file from another process (e.g. during a rebuild operation in Visual Studio) even after my PDB examination has completed and a
-
- Schema does not recognize types from a schema include
by Helio D
- 3 Replies
- Last post
by Helio D
- Hi,
I am attempting to use two schemas: schema Employee has a reference to schema person. However when I attempt to compile the schema set, the Employee schema can't find a base type which is located in the person schema. How can I ensure the employee schema correctly reads data from the include Person schema I end up with the error message:
Undefined complexType 'http://schemas.abc