-
- Processor efficient loops (notifications).
by NozFx
- 11 Replies
- Last post
by NozFx
- Hi all,
I need to spawn my own thread outside of the CLR's threadpool that waits for a notification within a time-out that is not going to hog the processor. Phew, what a mouthful.
Ok let me expand on that a little. Basically I have an ASP.NET application with an Asynchronous HTTP Handler that passes a device ID to my new seperate thread. (Ok the fact I'm using ASP.NET should not be a factor
-
- DatePicker
by worldhello
- 4 Replies
- Last post
by worldhello
- Hello everybody
I need to implement in DatePicker next satuation :
when user clicks inside white line (not on arrow) then
the date table should appear.
How to do that
Thanks
Yosef Fishov
-
- ref keyword
by Eusebiu
- 5 Replies
- Last post
by Eusebiu
- Hello.
I have a method with the parameter : params object[] pars. If call the method with : 1, "111", myObject, everything is OK. But if I call the method with : 1, "111", ref myObject, I get a compile error.
How can I get this to work
Thanks
-
- Cast to instance of type
by dob_xml
- 3 Replies
- Last post
by Peter Ritchie
- Is it possible to do the following
private static void Main(object toCast)
{
Type toCastTo = GetCustomType();
//now I would like to be able to cast the object toCast to be an instance of MyCustomClass
//assume MyCustomClass could be any class and the only way this function knows about it is
//via GetCustomType()
}
private Type GetCustomType()
{
r
-
- copying a windows folder structure to sql server
by R.Tutus
- 8 Replies
- Last post
by R.Tutus
- Has any one coded some thing that copies a windows root folder structure to sql server Thanks a lot
-
- Error in accessing DLL: "Attempted to read or write protected memory."
by Rappol
- 4 Replies
- Last post
by Rappol
- Hi there, I've made a Console Application in C# with VS2005 and putted it on a shared folder in my network (the EXE is called from a Job in SqlServer2000). After a little struggle to make it work due to permissions...(i used the caspol utility to add a subgroup under the 1.2. Zone - Intranet, and added a strongname to the EXE with fulltrust - i hope im not saying any weird stuff, my english is no
-
- Completely dynamic method invocation
by bryanedds
- 5 Replies
- Last post
by boban.s
- In java, I believe you can attempt to call a method even though the compiler can't find the method in the object's known class. Basically, you could do something like this -
Object o;
o.SomeMethod();
The java compiler doesn't look to see if SomeMethod exists in o. It simply compiles the code and tries to find the method on the object at run-time. If it's not found, something like a Method
-
- Help Search doesn't work
by Wuschba
- 2 Replies
- Last post
by Wuschba
- Hi. I switched from XP to Vista. Now, in my VisualStudio 2005, I cannot use the help anymore. For example when doing a search for "TabControl", I got this URL: http://msdn2.microsoft.com/Message-MSDN.htm aspxerrorpath=/en-us/library/ms749171.aspx Which is just saying that "Sorry, we were unable to service your request.". What could be wrong
-
- Help on Conditional operator ?:
by GrahamY
- 5 Replies
- Last post
by GrahamY
- This works...
if (searchDate!= null ) { cmdP0.Parameters[ "@Medical" ].Value=searchDate; } else { cmdP0.Parameters[ "@Medical" ].Value= DBNull .Value; }
so why does the compiler not allow...
cmdP0.Parameters["@Medical"].Value = searchDate!=null searchDate:DBNull.Value;
------------------
I've been having trouble getting null values into my table whe
-
- debuging multi thread application problem
by ashk1860
- 14 Replies
- Last post
by ashk1860
- hi
I have a windows application which have much intraction with the webservices. so I use backgroundworkers to make connection with webservices. I mostly handle DoWork and RunWorkerCompleted events to get the data in one and set in the other. and application is in debuging step now.
Just assume that the user loose the connection to internet when a backgroundworker is trying to connect to the
-
- Why Won't My App Run on Windows 2003 Server?
by Robert6327
- 3 Replies
- Last post
by RizwanSharp
- I am taking my first stab at writing an application in C#.
My App is designed to watch a folder and report any created deleted or modified files.
I created a simple form where changes are wrtiiten to a textbox, and concequently to a log file. I used the FileSystemWatcher Object, and wrtie to the text box and log file on the change events.
This application runs fine on my XP machine, but
-
- import C# Form as ActiveX in Internet Explorer
by anester
- 3 Replies
- Last post
by anester
- I am trying import a C# form as a ActiveX control on my webpage. I have followed the following tutorial verbatim here . What happens is it works great at first but then I change the dll, recompile and transfer the dll over to website and then the activex control will not load. Even if I copy the old dll back, it still does not load. Are there some settings on the compiler that I have to set. Any h
-
- Text encoding mismatch, .NET 1.1, console vs windows app
by Mannequin666
- 2 Replies
- Last post
by Mannequin666
- Hi, I spent whole day to resolve my problem and i have failed. Here is some details. I have got two applications. One is typical C# console application (lets call it A) and second one is C# Windows Application (app B). Both written using framework 1.1 I'm using application A in application B by simply creating new process. Also, I'm using standard output redirection to establish communication
-
- Threading Question
by PhaedoHD
- 14 Replies
- Last post
by Peter Ritchie
- I am trying to start a new thread from my main form thread, but it appears to not be starting a seperate thread though I don't see what I'm doing wrong. My code is below
Main Thread:
Spider sp = new Spider (url, sharedRes);
Thread th = new Thread ( new ThreadStart (sp.run));
th.Start();
The sp.run is a public void, if that makes a difference and the "
-
- opening other programs?
by Wolf_92
- 2 Replies
- Last post
by theblueeyz
- Hello, is it possible with C# to open up the user's default internet browser and take it to a certain web page I would like it to open it outside the program (if you understand). If you can do this, is it possible to open any program
-
- Help - How to create test code
by YongZai
- 1 Replies
- Last post
by OmegaMan
- Dear All:
I am new for c#, Any reference for me to create a system that can test/checking the coding. Is it the structure is correct or method is similar with my coding. I am really can't get any of idea how to create the coding for checking the java coding is correct or not.
Thanks for anyone are helping.
Regards:
Cathyie
-
- Internet Control..
by ElroyDSilva
- 2 Replies
- Last post
by ThE_lOtUs
- Hi. I'm an engineering student and i'm working on my project titled 'Internet Access Control' for our college.
Our college has a server connected to our network lab where internet is accessed. I'm using sockets programming and i would be glad if you tell me which classes i have to use along with the addressing considerations. The aim is to have the user (student) log in and the user can have a
-
- XML over the Serial Port
by Maks
- 1 Replies
- Last post
by OmegaMan
- Is there a better way to do the job than read bytes from the port to an array and then trick them into XML document. I will appreciate design ideas or the snippet.
-
- C#.NET 2005 Windows Service Crashing automatically
by rahulMCA
- 14 Replies
- Last post
by rahulMCA
- Hi,
I have a windows service written in C# 2005. The service basically listens to a queue in MSMQ. As soon as a message arrives in the monitored queue, the service processes it, does some processing in MS-access using ADO, OLEDB and ODBC.NET and finally executes a few queries, fills dataset and populates Excel sheets using MS-Office PIA(Primary Interop Assembly) and sends an email attaching t
-
- Problems with Intellisense popup behavior
by Earl Newcomer
- 2 Replies
- Last post
by Earl Newcomer
- My intellisense will appear for a second and then disappear. It does not give me time to scroll or select anything.
This behavior is not consistent. Is there a timing or environment setting for intellisense How does it determine how long it stays visible
Thanks,
-
- referencing and using an assembly in different folder than App
by bitbonk
- 3 Replies
- Last post
by Galin Iliev
- Is there a way to that an application could make use of assemblies that are not located in the same folder or in a subfolder of the main executing assembly Can I direct the probing for a referenced assembly to that different folder somehow Or could I load and use the the assembly using reflection
-
- SP2 causing error?
by pblecha
- 14 Replies
- Last post
by Gabriel Lozano-Moran
- I have a project that is having issues with SP2. It is a browser that was created to incorporate encryption and decryption protocols. I have done some minor fixes to the code since it was originally made, on my machine with SP2; now, the browser has exceptions on machines still running SP1 with the Explorer 6 browser object.
In order to recompile this application to run on these older machines,
-
- Looking for possible AssemblyVersion asterix override using config file.
by Bj&#24
- 2 Replies
- Last post
by Bjørnar S.
- Remember reading in a post here sometime ago that VS2005 can read a config file containing format specification to override the handling of asterix's in the AssemblyVersion / AssemblyFileVersion attributes. Is this correct that you can make the compiler set e.g. date format instead of default
-
- using System.Collections
by JaK82
- 2 Replies
- Last post
by JaK82
- Hi,
Posted another thread the other but no reply so I thought I would put the question a bit differently,
At the start of c# file you tell it that you are using certain classess, ie using System.Collections
If I wish to use a third party class like the google api
using Google.GData.Client;
Where abouts should I put the classess in order to reference them,
Many Thanks
-
- limit property values
by abs_Z3r0
- 7 Replies
- Last post
by abs_Z3r0
- Hi! I have a property in my class wich i would like to limit it's values to items that are read from a xml file. in other words, i have an array that i read from a xml file and and i'd like to attach that to my property so i can choose from that list at design time. thanks.