Answer Questions
TheGrooveDr Will this become a memory hog?
I made a FileWatcher object. Once a new file is created, all works fine. I would like the FileWatcher to begin watching for files again after it finishes with the file is it processing. What i have below is how I do it. I am just not sure if what I am doing is the best way. I am worried that a new FileWatcher will continue to be created, and after a while will begin to take more and more memory. I would like just one FileWatcher and one instance ...Show All
Piyush K. Singh SSL on TCP Socket, how in .NET 1.1?
Is there a way, using intrinsic .NET framework functionality, to open a TCP connection over an SSL channel I'd rather not get into buying libraries, etc. Java has the javax.net.ssl.* objects, and I'm not finding an equivalent in .NET. I looked all over the Internet, but nowhere a pointer/solution can be found. Please note this is a socket connection, not an HTTPS connection. Also, it's about .NET version 1.1. Any hints/tips/rem ...Show All
John Rice Help with a Regular Expression
Hi folks! I'm trying to parse into tokens the following string: (see 0 ((goal r) 66.7027 33) ((flag r t) 55.581 3) ((flag p r t) 42.4804 23) ((flag p r c) 53.7587 43)) to get : Token 1 = ( Token 2 = see Token 3 = 0 Token 4 = ( .............. My delimiters are ( , ) and " ". However I want to keep the parantheses as tokens, but discards th ...Show All
vtortola Parameterized queries
When using a parameterized query such as: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE @StreetName) Is there a way to automatically add % to the beginning and ending of the parameter I've tried the following command: SELECT LocationID, StreetNum, StreetName, rowguid FROM tblLocations WHERE (StreetNum = @StreetNum) AND (StreetName LIKE '%' + @Stre ...Show All
Roman Mandeleil using c# classes as com object
im using c# classes as com object and use that classes from vb6. but what will happen when i will remove my vb6 project to another computer i guess it wont work...so what i need to copy or do in order that my project will run in any computer thanks in advanced. Probably you will need to use RegAsm.exe to register the C# dll that contains your objects on other computers. ...Show All
bubu Stepping through a unit test generates MDA FatalExecutionEngineError
While debugging (stepping through) a Visual basic unit test in VS2005 (RTM) I intermittantly recieve a message box indicating a FatalExecutionEngineError was detected. Iniside the messagebox it says: The runtime has encountered a fatal error. The address of the error was at 0x79e74b77, on thread 0xb48. It continues on with error coe 0xc0000005. "this error may be a bug in the CLR....." Once this error occurs, i can no lon ...Show All
Daniel Germanus .Net Sample will not Register!
I downloaded the InProc sample code from the MSDN MFC OLE Automation sample page http://msdn.microsoft.com/library/default.asp url=/library/en-us/vcsample/html/_sample_mfc_inproc.asp After I build it, I try to run REGSVR32. I get an error: DLLRegisterServer entry point was not found. I look at InProc.Dll in the object browser and DLLRegisterServer is in the Global functions. 1. Can someone tell me why this microsoft sample fails ...Show All
givemejava My application loads lots of unknown assemblies!
Hi, I'm developing an enterprise application and, when debuggin, I've noticed that both aspnet_wp.exe and my client application load lots of assemblies with autogenerated names, with no path nor extension. This is happening as I make calls to the web server. What can be the cause Thanks in advance Yes, I know, but my web server contains only one web service (.asmx) and one web page (.aspx), and as ...Show All
rreyna Get a value from an SQL database into a Session Variable
Hi, I'm using the 2005 beta. I have an SQLDateSource that get a table returning 1 row with 2 cols. What do I need to do to store a value into a sessions variable. IE Table Username , BranchID Patmca , 1 Session("BranchID") = Any help Thanks Paddy Session("BranchID") = MyDataTable.Rows[0]["BranchID"]; If you have a DataSource then it would be MyDataSou ...Show All
S-cal Copy operation rejected in DataGrid when thread is set as MTAThread.
HI, I have a DataGrid dropped on the form with some datasource set and the thread set as MTAThread. When I do a copy operation using Ctrl+C, an exception is throwed. The details of the exception is as follows, System.Threading.ThreadStateException: The current thread must set to Single Thread Apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. at System. ...Show All
fahad11 Edit And Continue
Hello, How can E&C be activated on a x64 windows box against a x86 application thanks On my x64 machine I'm working on several applications, with VB 2005. I marked all with the x86 target platform. I can edit & continue on all th apps but not one. Where can I investigate to understand why this one have no e&c if you cant get e-n-c working, here ...Show All
Micael Baerens Miltiply applications memory use
Hello. I have a few vb.net windows applications that are running on screen. My problem is that when the exe file is only about 25k the memory it uses(+framework) is about 10mb-12mb for each of the applications. Can frame work be shared so even if I have few on screen apps , it will load the framework only once For now I have only 3 apps (that is about 30mb of memory use) and I need to do about 10 apps running .. Please help. Everything i ...Show All
VincentZalzal Can you make dlls that...
Is it possible to make a dll in Visual Basic .NET or Visual C# .NET that other programming languages can access and use yes, but can i access them in a language such as blitz basic or something like that Yes. Register them with regasm.exe Hi, If you want to consume a DLL built using VB.NET or C# in another managed language such as J#, then you can directly use ...Show All
arnulfoPerez Reading EML files in MailMessage
For the record, is it in any way possible using .NET 2.0 to load a MIME formatted EML files and have it in a System.Net.Mail.MailMessage class in a similar way that you can do so with CDO If not, can I be safe to assume that the CDO COM component will remain a supported component of Microsoft for later versions of the Windows Operating Systems like Windows Vista Thanks in advance for your reply. No Syst ...Show All
Mammoth text encoding
Hi Everyone, I have a string that I should encode in central-europian format. The issue is the following. I wrote a POP3Client class and after downloading the email and getting the headers and the body into seperated strings in need them to encode because of the "eaoo u i" chars (accentuated letters). Could anybody help me Thank you; Could you describe the issue for me a little more clearly 1. You should look at the content-transfer enc ...Show All
