microsoft.public.dotnet.framework Archive - August 2002
Post a message to this list
Messages
Page: 1234
events from one thread to another (2 replies)
microsoft.public.dotnet.framework
Hello. There is a work thread, called "theThread". It is started from the main thread, which has a form window. I should send a message from "theThread" to main thread. I fire event from "theThread". And I catch it in the form. But, this works just like simple function call. So the event handler is still in "theThread" thread. How can I do it? Under Windows API, I would simply do something like Po...
SOS: gradual application slowdown (2 replies)
microsoft.public.dotnet.framework
I've been battling this for quite a while and nothing seems to help. ANY hints/ideas would be met with open arms... Here's my problem: I have a windows form with a ListView, containing several thousand items. There is a button that causes complete refilling of the ListView, according to a certain filtering criteria. The data comes from a non graphically represented ArrayList like data structure in...
SecurityException in WebService Call (3 replies)
microsoft.public.dotnet.framework
I installed the MS DIME sample software on two machines. On one machine it works great, but on the other, I get the following exception: A first chance exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Hash for the assembly cannot be generated. Thanks, Joe
dbProvider, MySQL and Visual C++ .NET (3 replies)
microsoft.public.dotnet.framework
Has anyone been able to make dbProvider work using VC 7/.NET? What are some sample syntaxes to use it? eInfoDesigns does not provide examples... WL.
How to hold null value in structure? (2 replies)
microsoft.public.dotnet.framework
I have an issue and am looking for a good way to deal with it. The issue comes up in various situations, but it is easily explainable using the DateTime structure. I often have classes that have properties that map to database fields. For instance the class MyClass may have a property DateUpdated which maps to a DateTime field in a database. The database allows null values, but I can not set the D...
Null statements in CodeDom (2 replies)
microsoft.public.dotnet.framework
Hello all, Does anyone know how to generate a null statement using the CodeDom? When I reach data in a row that is null I want to return null for reference types. In C# it would be, "return null;" and in VB it would be "Return Nothing" and I need the CodeDom to do this. Thanks in advance, Shannon
Only getting first letter when reading data of SQL Server (2 replies)
microsoft.public.dotnet.framework
Hello, This is a weird problem. Am attempting to extract information of a database and display it on a ASPX web page. The information extracts ok but it seems that not the whole word is displayed. For example, when user logs in, the main page should say, "Greetings Joe Bloggs", instead it says "Greetings J B". When in the database, the column for first name is in full "Joe" and column for second n...
Upload file from dotnet windows app? (2 replies)
microsoft.public.dotnet.framework
Is there a way to upload a file to the server using HTTP where the client program is a windows app and not the web browser? Thanks.
BUG in optimized JIT compiler (4 replies)
microsoft.public.dotnet.framework
Hi, I've found a bug in the JIT compiler that occurs when performing a bitwise AND with 0xff. When JITting optimized code the JITter optimizes the AND by moving the operand into a register and then retrieving the zero extended byte part of the register. E.g: b a & 0xff; becomes mov eax, a movzx ebx, al mov b, ebx The problem is that the JITter sometimes uses registers without a byte part (i.e. edi...
Stop a service from within the service (2 replies)
microsoft.public.dotnet.framework
I have a service that requires an async statup. This is because on slow machines, the SCM is timing out the OnStart(). This is now problem, because I'll just do it in a thread. The question is how can I signal the service to stop if the thread fails? What's happening is the service is being left in a state of "starting". I figure I'll create a class that will have a success and a failure event tha...
CS0013: Unexpected error writing metadata to file... (2 replies)
microsoft.public.dotnet.framework
Please, I need help... This error ocurs when the initial page has invoked in the browser... Complete information: Server Error in '/MercadorWeb' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS00...
.NET Framework SP2 breaks ASP.NET VB applications (4 replies)
microsoft.public.dotnet.framework
I can't believe that after installing the .net framework sp2 none of my asp.net VB appication work anymore! There must be something wrong that I have done recently but here it goes: 1. I installed the latest and greates .net framework sp2 today on my development machine. 2. Opening existing ASP.NET VB applications, rebuilding them and running them result in the compiler error shown below. This hap...
Exception Management Application Block Problem (3 replies)
microsoft.public.dotnet.framework
Hello, I am trying to publish a Custom Publisher Exception using "Exception Management Application block" and I always get the following error in event log! Event Type: Error Event Source: ExceptionManagerInternalException Event Category: None Event ID: 0 Date: 8/13/2002 Time: 11:33:56 AM User: N/A Computer: RAJESH Description: 1) Exception Information *********************************************...
Component Services Mystery (2 replies)
microsoft.public.dotnet.framework
I'm running a pooled object in COM , and it functions properly, but I can't get it's statistics to display in the Component Services MMC snap in. In fact, the component doesn't even spin when it's activated. In the MMC, the "Component supports events and statistics" option is checked, and I'm even setting the "EventTrackingEnabled" to true declaratively (see below). ObjectPooling(Minpoolsize: 5, M...
Not Sure why I am getting the error CS0118: 'xyz.def' denotes a 'namespace' where a 'class' was expected (3 replies)
microsoft.public.dotnet.framework
Hi I have 2 c# projects defined in Visual studio , 1. VMS.Image and 2. VMS.Windows Here is the snapshot of the solution. Project VMS.Image has a dummy class, Class2, defined in the namespace VMS.Image using System; namespace VMS.Image { public class Class2 { public Class2() { } } } Project VMS.Windows has a class, Class1, defined in the namespace VMS.Windows. It has reference to, amongst other thi...
File.Copy is locking the original file (2 replies)
microsoft.public.dotnet.framework
I am attempting to use the static File class to copy some files. When I use "File.Copy(...)", it is locking the original file, and I need to be able to overwrite that file. What I am essentially trying to do is this: 1) Read an xml file which contains version info about various assemblies available on a server. 2) Iterate through the local copies of those assemblies and determine which ones need t...
Can you pass Data From one thread to another? (3 replies)
microsoft.public.dotnet.framework
I just create a threat to run code off of button1 which will be on a windows form. This code will stop with button2 on the same form is pressed. Also on this form I have a few text boxes, the problem is that the loop that is running on button one contains the data that I want to display on the Main windows form. How can I access the Form fro the thread and change the values displayed on the form a...
How can I check to see if an object derives for System.Exception? (3 replies)
microsoft.public.dotnet.framework
How can I check to see if an object derives for System.Exception? This is my psudo code: foo(object o) { if (o is a derived class from System.Exception) { do something; } }
Bug in File.Exists() ? (4 replies)
microsoft.public.dotnet.framework
Hi all I've discovered a strange behaviour, which I guess is a bug, of the Exists() static method of the File class. When giving to it a path to a file ended by a backslash, the method always returns true. File.Exists(@"c:\temp\foo.htm\") returns true (only if the file "c:\temp\foo.htm" exists) It's very annoying in a web environment where this king of trailing backslash may happen often. Does any...
natural culture problem (4 replies)
microsoft.public.dotnet.framework
Hi, I am developing an ASP.NET application that needs to be multi lingual. I have created a directory structure for 3 different languages: EN, DE and ES and put a satellite assembly in each one of them after compiling it using the AL tool. All is working well until I ask for a German word translation that does not reside in the DE assembly (since I wanted to check the fallback mechanism) As I unde...
Attribute's object? (2 replies)
microsoft.public.dotnet.framework
Is it possible to get the object an attribute is applied to at runtime? For emample, say I had: [MyAttribute] private TextBox myTextBox; At runtime, I want to be able to figure out what that attribute was applied to. This seems simple enough, but I can't figure out how to go about doing it. I want to do this so that I can look through a class for variables that have a specific attribute and then d...
Winsocket in C# (5 replies)
microsoft.public.dotnet.framework
Hi, I've look around but nothing right now, I would like to know the way to access winsocket control in C#. Are there some net papers or ufficial documentation? Thanks, Enrico
Getting the user name associated with a process (2 replies)
microsoft.public.dotnet.framework
After obtaining a System.Diagnostics.Process from a call to System.Diagnostics.Process.GetProcesses() how do I determine the user name associated with that process? In a terminal services environment, how can I determine the session ID/name for a process? Is there a some internal link between processes and user, or do I have to work it backwards, by enumerating the sessions (how?), and searching f...
Is this a bug; please confirm MS... (2 replies)
microsoft.public.dotnet.framework
Despite all my efforts I have yet to find a solution to my issue and I'm beginning to think this is a bug. I have a page with a datagrid, it has a column of HtmlInputFile. I have this page working, but when I moved the code over to a User Control it generates the following error when the update command is called: Object reference not set to an instance of an object. Code from the design page: asp:...
kill a thread in the middle of a receive() (3 replies)
microsoft.public.dotnet.framework
Hi all, How do you kill a thread that's waiting on a socket? I have a UdpClient object, and a thread that sits on the client, calling Receive() forever. When the user closes the main Form, the thread doesn't terminate. I tried calling thread.Abort() from Forms.Dispose(), but that didn't work. Any advice? Thanks! Albert
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification