all groups > dotnet framework > september 2004 > threads for wednesday september 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Optimization Help Needed
Posted by Cool Guy at 9/8/2004 11:48:22 PM
How could I optimize the following method, whose purpose is to concatenate
two byte arrays?
public static byte[] ConcatBytes(byte[] a, byte[] b)
{
byte[] result = new byte[a.Length + b.Length];
uint i;
for (i = 0; i < a.Length; i++)
{
result[i] = a[i];
}
f... more >>
Threading problems with COM Interop
Posted by rajesh.sivakumar at 9/8/2004 11:12:04 PM
I am using a third party COM componenet which is not thread safe in a .Net
web application using Interop. When two threads (two requests) are trying to
access the componenet it is giving an error and crashing. It works fine if
the request is made only one at a time. How can I code around this pro... more >>
Reading Files in Worker Threads
Posted by Cool Guy at 9/8/2004 10:40:46 PM
I use the following method to read a file:
static byte[] ReadFile(string path)
{
FileStream stream = new FileStream(path, FileMode.Open);
BinaryReader reader = new BinaryReader(stream);
byte[] result = reader.ReadBytes((int)stream.Length);
reader.Close();
return result... more >>
where is the infinite recurssion?
Posted by assaf at 9/8/2004 5:49:40 PM
hi all
this is the original dot net Region.GetRegionScans.
i am experiencing StackOverflowException when i call it with a
many-rectangle region.
i am looking for the recurssion,
but i can't find it...
can u?
public RectangleF[] GetRegionScans(Matrix matrix)
{
int num4;
... more >>
FolderBrowserDialog does not display the directory structure after installing .NET Framework SP1
Posted by Michael Hoehne at 9/8/2004 5:42:44 PM
It only contains the buttons to create a new folder, Ok and Cancel. Is there
any main thread where issues regarding to SP1 of the .NET Framework 1.1 are
assembled?
This is the second UI bug I found after installing the SP a few hours ago.
If I find more, I would like to remove it, but I don't ... more >>
Assembly Trust Question
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 9/8/2004 3:09:08 PM
I have an executable I have built. On some computers it runs without
a problem. On others it will give a security exception. If I run the
..NET Configuration wizard and move the level from no trust to the
first level up, it will then run the program.
How can I workaround this or fix it? I ... more >>
Assembly Trust Question
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 9/8/2004 2:26:12 PM
I have an executable I have built. On some computers it runs without
a problem. On others it will give a security exception. If I run the
..NET Configuration wizard and move the level from no trust to the
first level up, it will then run the program.
How can I workaround this or fix it? I ... more >>
Net Framework 1.1 SP1/VS.NET 2003 SP Question
Posted by Jim at 9/8/2004 12:25:02 PM
When I do a windows update I noticed that the Net Framework 1.1 SP1 is
available. The question I have is, does that mean that there is a SP
available somewhere for Visual Studio.NET 2003?
I would think that a SP for both would be required if there are changes to
the Framework! I found sev... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
1.0 SP 3 & SecurityException
Posted by edtong at 9/8/2004 11:57:30 AM
I have an application which is a EXE running as an NT service. It accesses
an assembly (a1) which in turn accesses types defined in another assembly
(a2). All was fine before SP3. Once SP3 is installed, I'm getting
SecurityException whenever a1 wants to access types in a2, getting "Request ... more >>
sqlserverCE sdf
Posted by Finn J Johnsen at 9/8/2004 10:39:14 AM
Hi
Is there a way to generate a sdf -file on a PC, and move it for the
SQLServerCE -device for usage there?
I've got aprox 100 000 records to insert to the sdf -file, and have
built a webservice for fetching chunks of records, inserting it to the
sdf. This process takes hours. I guess ov... more >>
error instaling .Net Framework
Posted by Anderson Calos Parucker at 9/8/2004 10:35:15 AM
Im getting this erro when I try to install .Net Framework 1.1
Product: Microsoft .NET Framework 1.1 -- Internal Error 2908.
{7D4B5591-4C80-42BB-B0E5-F2C0CEE02C1A}
How I resolve this !?
Thank you for any help.
Anderson
... more >>
Types vs. Attributes
Posted by Lance Johnson at 9/8/2004 9:57:03 AM
We want to be able to load the classes from a directory that derive from a
particular base class. So the question is whether attributes for each
deriving class will help us in finding these classes faster or not?
We currently have attributes and use those, but it seems very slow to go
thro... more >>
Access to installation files from Custom Actions class.
Posted by Oleg Ogurok at 9/8/2004 9:10:19 AM
Hi all,
Is there a way to get the path to the temp directory where installation
files are unpacked to?
Also is there a way to specify in a deployment package that a file should
not be installed anywhere but simply included into the package? E.g. I want
to include install_docs.txt (as losel... more >>
Is AxImp broken in SP3?
Posted by alistair_public NO[at]SPAM hotpop.com at 9/8/2004 8:17:49 AM
Hi,
I'm experiencing problems with AxImp.exe since installing framework
1.0 service pack 3.
When I try to run AxImp I get:
AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
CLS compliant primitive types can be used. Consider using
CodeObjectCreateExpression.
If I run... more >>
Reading data from a Socket
Posted by gilles27 NO[at]SPAM talk21.com at 9/8/2004 4:04:04 AM
I have coded a method which reads data from a socket in chunks of 2048
and concatenates those chunks into a string before returning the
string to the caller. Almost all the time this code works perfectly
well. Occasionally, for a reason I've yet to determine, the returned
string seems to be trun... more >>
InvalidCastException
Posted by Luigi at 9/8/2004 3:09:18 AM
I was debugging an error in a C# application (.NET framework 1.1) and I found
out a behaviour that I'm not able to understand.
In the following code snippets I report 3 cast situations.
Could anybody explain me what's going on in case 3 ?
---- case 1 ---
Byte k = (Byte)18;
Int16 m = (Int1... more >>
|