all groups > dotnet clr > january 2004
Filter by week: 1 2 3 4 5
Codedom
Posted by Klaus Löffelmann at 1/31/2004 7:25:25 PM
Hi,
before I'm going to search my self to death; does anybody happen to know a
link to a desciption how to not only produce code via CodeDom, but also
modify code in an already opened source file (Like the form designer does)?
Thanks a lot,
Klaus
... more >>
Memory Leak Investigations
Posted by Nick Carter at 1/30/2004 1:51:35 PM
I am searching for a suspected memory leak and I have made some assumptions
and I would be
grateful if someone could check my thinking...
I have a remoting server that I believe has a memory problem. My first
assumption is that I
believe it has a memory problem because I am checking "Mem Usag... more >>
Compile an assembly with a reference to an in-memory assembly
Posted by Ray Johnson at 1/30/2004 12:31:15 PM
I'm trying to compile an assembly in memory (kind of a plugin thing) that
references another assembly in memory.
Unfortunantly, the CompilerOptions object only has an argument like this:
parameters.ReferencedAssemblies.Add("System.DLL");
where the assembly must be on disk.
Is there ... more >>
Old version of CLR
Posted by Ken Galer at 1/30/2004 12:05:18 PM
Can I un-install V1.0 of the framework leaving V1.1 installed without any
ill effects?
Thanks
--
Ken Galer
Preferred Utilities Corp.
kgaler@-NoSPaM-preferred-mfg.com
... more >>
IsFamilyOrAssembly
Posted by ebloch NO[at]SPAM phreaker.net at 1/30/2004 9:01:32 AM
I note that among the properties provided by the MethodBase class is
this strange one: IsFamilyOrAssembly. According to the description
provided in the documentation, such a member is accessible to any
derived classes or to any classes in the same assembly. Is there an
associated access specif... more >>
.NET classes and Intranet security
Posted by Manish Buttan at 1/30/2004 6:41:05 AM
Hi
I am trying to implement an enterprise level application in C# with various functionalities such as database access,Disk I/O and GDI drawing
I need to make this application run with different levels of .Net security settings, on an intranet.
Where can i find a mapping between the... more >>
Manipulating printer jobs
Posted by Célio Cidral Junior at 1/29/2004 2:46:43 PM
Sorry if I'm cross-posting, but I'm not sure what is the better post this
question. It's about joining together many printer jobs into a single one.
Note: this is not a Crystal Reports question.
I'm using Crystal Reports to print a report by using the ReportDocument's
PrintToPrinter method. ... more >>
TCP/Binary Remoting and Perf Problems
Posted by Raghu at 1/29/2004 11:13:39 AM
Our deployement consists of web server (dual processor) and application
server (dual processor). The ASP.NET web application makes remoting
(Tcp/Binary) calls into a window service (our own) hosted on application
server. During our load testing, we found that there is huge gap in time
during cro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Setting ScreenSaver
Posted by Christopher Burr at 1/29/2004 10:50:59 AM
I'm trying to set the user's screensaver in the .NET world...
In Win32 I could use a combination of setting the screen saver name via the
registry and then setting the time and active status using
SystemParametersInfo. And the system would use the new settings.
Now that I'm trying to do i... more >>
LicenseProvider
Posted by Frédérick Jacquet at 1/29/2004 9:14:11 AM
Hi,
I need to write my custom LicenseProvider. I would like to kown if the
license key stored with context.SetSavedLicenseKey(...) is stored in a
secure way in the assembly resource ? should i encrypt the license key or
not ??
thank you.
... more >>
Multi-threaded windows service on a multi-processor server
Posted by bmeyvin NO[at]SPAM yahoo.com at 1/29/2004 7:27:38 AM
Hi,
I am developing a multi-threaded windows service in C#. It is intended
to run on a multi-processor server. Single Application domain. To the
best of my knowledge there is a direct mapping between logical CLR
(Systsem.Threading.Thread) threads and physical OS
(System.Diagnostics.ProcessThr... more >>
use of volatile keyword
Posted by Assaf at 1/28/2004 10:21:20 PM
hi all
i know that i should not cross-post,
but i am not sure to which group to post this question.
2 quesions about volatile:
1. i use volatile when 2 threads access the same variable
is this the proper use of volatile?
2. when declaring a variable of type long, i get a compilat... more >>
Stop the GC collection
Posted by Vadym Stetsyak at 1/28/2004 4:29:21 PM
Hi there!
Is there any way how can I stop garbage collection for a period of time.
Lets say, I have a form. Before form load I pause the GC and when the form
is shown resume GC
... more >>
internal compiler error
Posted by reiks at 1/27/2004 3:21:05 AM
what is this internal compiler error? How is it generated
how to correct it?... more >>
opendirectory dialog box
Posted by reiks at 1/27/2004 3:01:04 AM
Is there any opendirectory dialog box similar to the open file dialog box
My requirement is to allow the user to select a destination folder
How can I acheive this in .net?... more >>
Non-Thread Safe Code Question
Posted by Nick Carter at 1/26/2004 3:49:07 PM
I am not sure why my non-thread safe code works and hope that I can get some
insight from someone.
I have the following class:-
class Test
{
private int accessed = 0;
public int Accessed
{
get {return accessed;}
set {accessed = value;}
}
}
I run 100 threads simultan... more >>
Managed Code
Posted by Ben at 1/26/2004 10:49:20 AM
I have a question Java has a runtime, garbage collection and a JIT. Does
Java use 'managed code'?
If not, what does the CLR offer in additoin to this?! Is it just MS speak?
Ben
... more >>
Big assembly vs small one
Posted by Vadym Stetsyak at 1/22/2004 5:24:23 PM
Hello
How big assembly with numerous namespaces can affect performance of the
application. I understand that the overhead is on start when the assembly is
loaded, but isn't better then constant overhead with small assemblies?
TIA
Vadym
... more >>
accessing VC ActiveX from .NET
Posted by knir NO[at]SPAM sonata-software.com at 1/22/2004 5:08:03 AM
Hi All,
I have created an ActiveX control using VC 6.0.
One of the interface implements a method which takes in VARIANT FAR*
as the parameter.
Iam unable to call this method from C#(.NET 2003) no matter what..
I can call the same method from VB 6.0.
I have been bogged down by this problem fo... more >>
COM interop - cleaning the registry in the .NET era
Posted by Andy Voelkel at 1/21/2004 5:32:29 PM
I used to use a tool called OleClean to clean the registry as I developed
COM components. Unfortunately, it doesn't work with .NET based components,
presumably because the value of InprocServer32 is mscoree.dll for all .NET
components.
When I use oleview to view the registry, I see all sorts o... more >>
Avoid closing a Console mode Application
Posted by Bruno Ceysens at 1/21/2004 1:24:02 PM
Is it possible to avoid the closing of a Console Mode application when
clicking "X" ?
Thanks,
Bruno.
... more >>
IEExec error with framework 1.1
Posted by geekfo NO[at]SPAM btinternet.com at 1/21/2004 4:29:41 AM
Hello ,
I have just rebuild an existing application with vs.net 2003.
This application is deployed following the no-touch deployment pattern
(i.e. executable sitting on a directory on a web server).
When trying to accessing the new version
(http://myintranetserver/mydirectory/myapp.exe), clie... more >>
Need help with DbgManagedDebugger.
Posted by Ken Varn at 1/20/2004 8:58:18 AM
I have created my own application to handle unmanaged clr exceptions using
the DbgManagedDebugger registry setting. I tested it and it does get called
when unmanaged exceptions occur. The problem is that when it exits, the
offending application does not terminated. Making a call to
TerminateP... more >>
Implement a String in a Path?
Posted by Terry at 1/20/2004 1:01:09 AM
I'm passing in TheUser to this function and am using the streamreader and writer to do a search through the ini file to find
a line to replace. I have alread finished all of the code but this line. In VB.NET it would be written this way:
TheUser is the person who created the thread. (Who logged on... more >>
Display Exception Stack Trace
Posted by Bruno Ceysens at 1/19/2004 4:32:57 PM
Hello,
I'm using the StackTrace class in order to display the stack trace when an
exception occurs. I also display the parameter name and type of each method
called:
Begin Stack Trace:
DoubleType>>#Parse
Value As String
NumberFormat As NumberFormatInfo
... more >>
CLR 8007000b error on W2K
Posted by Franz Häring at 1/19/2004 1:27:15 PM
On some W2K SP4 machines the error CLR 8007000b occurs when my C#
application starts. After installation the app starts normally. After some
time when the app is started again, the error is displayed. From this time
on, it won't start any more. Reinstallation of the app don't solve the
problem, ... more >>
Which GC is used by a Windows Service ?
Posted by Matt Davey at 1/19/2004 11:09:02 AM
Is it dependant as per a normal process on the number of CPU's and variant
of OS installed ?
Later
... more >>
how to get current variable values
Posted by Sankar Nemani at 1/19/2004 10:51:10 AM
Hi All,
How can I get all the local variables, their values (something similar
to the auto/locals window in debug windows) at runtime for my application?
TIA
Sankar
... more >>
creatinf instances of objects-urgent
Posted by reiks at 1/19/2004 1:46:20 AM
Is it possible to create instances at runtime. i.e the type of the variable will be known at runtime.
for example,see this simple sample code
class A
{
// events and methods
}
class B
{
// events and fucntions
}
void main()
{
string s
int i=9
if(i==9)
s="A"
else
s="B"
c1 = n... more >>
thread mode/apartement c#-app calling inproc-com-server
Posted by Frank Gobert at 1/19/2004 12:39:29 AM
In my c#-app I want to use a 3party Com-Server.
I made the following architecture:
1) App-c# project
2) a managed component "MyComp" in c++, using the comserver inside
inside the method Initialize of MyComp i call
CreateFromClsidInproc to create the comserver object instance. the docu of
th... more >>
Need help on publisher and application version policy
Posted by Dan at 1/17/2004 10:23:20 AM
Hi All
has anyone tried deploying publisher policy? when CLR resolving publisher
policy and application policy, which one has the final say? My experiment
shows that the application policy will determine the final version binding
(publisher policy for the application and assembly are enabled).... more >>
Hosting The CLR
Posted by Bob Elward at 1/16/2004 7:01:17 PM
I'm writing a program to Host the CLR. As part of this I would like to run my managed code in an AppDomain other than the DefaultDomain. My understanding is that I can do after loading and starting the CLR by using CorBindToRuntimeEx to obtain a pointer to ICorRuntimeHost. With this interface poi... more >>
multi level inheritance
Posted by EK at 1/16/2004 4:32:59 PM
Hi
Can you tell me if .net platform support multilevel inheritance. Such as in
C++?
ek
... more >>
Unloading assemblies
Posted by Sascha at 1/16/2004 11:25:10 AM
Hi,
Does anybody know WHY an assembly can't be unloaded individually?
In Java the Classloader provides this option, i.e. you can unload one
single class. I'm wondering whether Microsoft will provide something
equal at any time.
I've found only the following FAQ on the CLR:
http://blogs... more >>
Difference between Java-Bytecode and IL
Posted by Andy Schmitt at 1/16/2004 3:39:22 AM
Hi everybody,
I'm a Java-developer and I tried to compare Java-Bytecode
and IL-Bytecode. There are a lot of differences between those
two bytecodes.
Main difference: IL has a so-called "generic stack".
But does IL have any advantages compared to Java-Bytecode?
Why did Microsoft choose a "... more >>
inconsistency in public key values generated by compiler and SN.exe
Posted by Dan at 1/15/2004 5:21:44 PM
Hi all
I found some inconsistency in the presentation of the public key, need your
clarification...
1) I generated a public/private keypair using SN. Then I use the following
command to see the generated public key in text form:
SN -tp mycompany.key
the result is:
Microsoft (R) .NET... more >>
Workstation or Server execution engine?
Posted by Raghu at 1/15/2004 4:35:06 PM
I got a multi-processor machine. How do I know whether workstation version
(mscorwks.dll) or server version (mscorsvr.dll) is being used on the
machine?
Thanks.
... more >>
COM+ Server Applications and GC
Posted by Ice at 1/15/2004 3:22:37 PM
All -
Running V1.1 of the framework on an MP machine and based on what I've been
reading, am I correct to suggest that the Workstation GC is what is being
used by my dllhost processes? That the mark phase is done a separate thread
of execution on the other CPU, but the sweep phase occurs on t... more >>
Accessing Functions in a JScript.NET assem
Posted by Rashad Rivera at 1/14/2004 8:39:30 PM
Hi Gang,
My question is directed more towards the MS JSctip.NET
dev team. I understand that you guys are planning to
implement events in the newer versions of JS.NET, but is
there a way to work around this problem now? I thought I
could access a function in a HTA application by passi... more >>
Intermediate Language
Posted by rb at 1/14/2004 6:26:21 PM
Hi,
I have a general doubt. It may sound stupid. Please help me clear this doubt.
When a C# program is compiled, it will generate the Intermediate Language (IL) code. But when we compile, we will get a .dll file. Why do we have to Dis-Assemble it to see the IL code. Everywhere I read, it says,... more >>
does CLR verify a stringly name assembly if it is not installed into GAC?
Posted by Dan at 1/14/2004 4:34:06 PM
Hi all
does the CLR performs any load-time check for tampering/security on a
strongly name assembly that is privately deployed (not installed into GAC)?
thanks
dan
... more >>
Environment.CurrentDirectory changed by CDO 1.21
Posted by brian NO[at]SPAM nospam.net at 1/14/2004 2:13:31 PM
It seems that Environment.CurrentDirectory is changed by
the cdo.dll. Why does cdo.dll need to change the
currentdirectory? why does the framework allow the COM
process to change the calling processe's current directory?
this can be displayed best by: (vb.net)
Sub Main()
'... more >>
how does the compiler work?
Posted by rp at 1/13/2004 11:29:13 PM
Hi,
can anyone tell me what steps the compiler performs during compilation of
the code? A rough step-by-step listing would be more than enough...or maybe
a link where I can look it up?
Thanks in advance and kind regards,
Robert
... more >>
exceptions in finally
Posted by Sankar Nemani at 1/13/2004 6:29:08 PM
Hi all,
If there is an exception inside the finally part of the try block, then
the original exception will be lost. Other than making sure the finally code
does not throw any exceptions and/or putting a try-catch (and ignore
exceptions) block around the code in finally, is there any better ... more >>
handling exceptions in multiple threads
Posted by Sankar Nemani at 1/13/2004 6:26:52 PM
Hi all,
It is my understanding that if the main thread spawns a new thread,
exceptions that are thrown in the new thread can't be caught in the main
thread. Is that true? If it is, then what is a good way to handle such
exceptions?
Can we make it a design decision to put a try catch block i... more >>
Process.<memory> fields vs Perfmon Process memory counters?
Posted by Bert Hyman at 1/13/2004 1:52:11 PM
There are a number of memory-related fields in the Process object that
appear to be similar to counters under the Process object in Perfmon.
Is there a mapping of the Process field names to the Perfmon counters?
Are they really the same values but with different names?
--
Bert Hyman | S... more >>
ThreadContext, ThreadException and message loop(pump)
Posted by Sankar Nemani at 1/13/2004 11:38:08 AM
From a previous posting, I learnt that the Application class's Run method
starts a message loop(pump) on the current thread. But the following
findings confuse me.
1. When I look at the message loop code using the .NET reflector, I see a
lot of code referring to the word Thread. (ThreadContext e... more >>
What is NOT a "safe point"?
Posted by Jon Shemitz at 1/12/2004 11:41:45 PM
Thread.Suspend lets a thread run "until it has reached a [a point in
its execution at which garbage collection can be performed] before
actually suspending the thread."
I'd expect the CLR's internal malloc/free routines are mutex protected
so as to not scramble the free list, just as in unmana... more >>
StackTrace
Posted by Sankar Nemani at 1/12/2004 12:42:05 PM
Hi All,
When I create a new StackTrace object using
System.Diagnostics.StackTrace class, it does not seem to
have the complete stacktrace of the calls as it is in the
source code. We suspect it is due to optimizations. But
even the il code contains calls to all functions matching
the ... more >>
string immutability
Posted by rb at 1/12/2004 9:36:19 AM
Hi
I am working on this code
string a = "rb"
string b = a
when I say object.referenceequals(a, b), what should it print either true or false. Its printing true. I read it somewhere that the runtime will create a new string b and copy a's value into b. Then a and b should point to different me... more >>
|