all groups > dotnet framework > june 2005 > threads for june 1 - 7, 2005
Filter by week: 1 2 3 4 5
Not creating window handle
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 6/7/2005 10:01:30 PM
Hi all
I am having problem in dot net application.
I am getting lots of errors while running this application. But no
exact sceanario is found.
First error i am getting is 'error in creating window handle'. Which is
occuring if i run application continuously for nearly 30 minutes or for
1 hour... more >>
.NET Memory Problems
Posted by Prasad Dannani at 6/7/2005 9:16:32 PM
HI,
I am a C#.NET Developer.
I created a windows application which is taking too much memory. But my code
is calling dispose methods of all objects and assigning null them.
I don't know why is it happening After that i tried the GC methods it worked
for me in the first instance but from the n... more >>
Obtaining the URL from an Internet Shortcut
Posted by Rich S. at 6/7/2005 9:06:01 PM
Hello,
How does one use the IUniformResourceLocator interface from C# in order to
get the URL that an internet shortcut points to?
Is there a specific reference I should add to my project?
Thank you very much,
Rich ... more >>
Window class name
Posted by AlexS at 6/7/2005 7:49:19 PM
How can I set class name for my form in .Net?
For example, my app main form has class name like
WindowsForms10.Window.8.app3
is it possible to change it?
Tx
Alex
... more >>
Control.Invoke
Posted by Cool Guy at 6/7/2005 6:20:03 PM
If I call Control.Invoke on a worker thread, which thread gets blocked: the
worker thread or the main (GUI) thread?... more >>
Dynamic SQL generation for the UpdateCommand
Posted by John at 6/7/2005 2:22:50 PM
I upgraded the MDAC to 2.8 on a server/system that has been in
operation for several months, but now get the following error:
Dynamic SQL generation for the UpdateCommand is not supported against a
SelectCommand that does not return any key column information.
Has anyone else experienc... more >>
modal DLL calling
Posted by Elisabete de Moraes at 6/7/2005 2:10:47 PM
Hi everyone,
I have a .Net dll that instantiates other .Net dll's and win32 dll's,
through LoadLibrary and System.Reflection.Assembly namespace. That's working
fine.
I need .Net dll (caller) to wait till the end of the called function /
method ends processing (something like making called DLL... more >>
framework redistributable vs languages
Posted by kenneth NO[at]SPAM nospam.nospam at 6/7/2005 11:20:02 AM
BASED ON CREATING INSTALLATIONS FOR AROUND THE WORLD:
What is the difference between different versions (english,german,etc) of
the v1.1 framwork resdistributable?
When creating an installation for your application, where you want to
pre-install the framework, does it matter which version yo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Checking version...
Posted by NICOLAS Julien at 6/7/2005 10:58:34 AM
Hi,
I need to know if the framework was installed in the computer and after that
checking the version of it to be sure that I can use my .net application on
the machine.
thanks for your help !
JULIEN.
... more >>
out of Memory exception
Posted by cmies at 6/7/2005 10:57:01 AM
I hope someone can help.
I have an application whose purpose is to suck files into memory and read
through them. These files can't be read sequentially. This has worked like
a charm for over a year... file sizes are anywhere from a few hundred bytes
to 50 MB.
Well, now i have to suck... more >>
What is the PostMessage(to self) equivilent in .NET?
Posted by David Thielen at 6/7/2005 10:32:10 AM
Hi;
In the windows API you could call PostMessage() to yourself (the window you
are in). Is there an equivilent in .NET so I can cause an event in my form to
trigger after all events presently in the queue complete?
--
thanks - dave... more >>
SecurityException on GetTempFileName()
Posted by David Thielen at 6/7/2005 10:24:03 AM
Hi;
This is driving me nuts because it should work. In my AssemblyInfo.cs I have:
[assembly:CLSCompliant(false)]
[assembly:ComVisible(false)]
[assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum,
UserQuota=1048576)]
[assembly:SecurityPermission(SecurityAction.RequestMinimum... more >>
Pass Parms to script via Process class
Posted by Billy TheKid via .NET 247 at 6/7/2005 9:00:32 AM
Using the Process class I need to pass some parameters to the .vbs file i am Starting
Code so far
Dim ShellProcess as new Process
ShellProcess.StartInfo.FileName = strVBS
ShellProcess.StartInfo.UseShellExecute = True
ShellProcess.Start()
how do I pass parameters to the Start method?
... more >>
performing pre-batch compilation
Posted by julio at 6/7/2005 7:27:30 AM
Hi,
I need some article about performing pre-batch compilation.
Can any help with this topic and find this articles?
Tia
Julio ... more >>
GC.Collect doesn't trigger finalizers?
Posted by Conceptor at 6/7/2005 7:12:04 AM
Hi all,
I am building a VB.Net app on Framework 1.1 using VS.Net 2003. I have a
special logging *singleton* class that needs to do work once every object in
my application has either finalized or been disposed of.
The way I have been doing it is by
1) removing my logging class from t... more >>
GC.Collect doesn't trigger finalizers?
Posted by Conceptor at 6/7/2005 7:11:02 AM
Hi all,
I am building a VB.Net app on Framework 1.1 using VS.Net 2003. I have a
special logging *singleton* class that needs to do work once every object in
my application has either finalized or been disposed of.
The way I have been doing it is by
1) removing my logging class from t... more >>
Runtime Control Of XML Serialization (Elements vs. Attributes)
Posted by grwalker NO[at]SPAM vt.edu at 6/7/2005 4:39:31 AM
I have some classes that have the <Serializable()> attribute applied,
which of course by default serializes the class properties as elements.
What I would like to do is to be able to override this behavior at
runtime to serialize the properties as attributes.
I have been exploring the XMLA... more >>
ASP mail component
Posted by AVL at 6/7/2005 1:47:09 AM
Hi,
What is ASp mail component? where can i find more info abt it?
Is it a freeware or do i need buy it? ... more >>
Curious: static void Main() does not to be public?
Posted by Neo The One at 6/7/2005 12:40:02 AM
I just found that program entry point static void Main() does not need to be
public!
Is that an violation of language infrastructure and runtime security?... more >>
My application object is nothing on a network drive
Posted by NICOLAS Julien at 6/7/2005 12:00:00 AM
Hello,
I have a dotnet dll file.
This dll is to use MS Project by VB.
When I am launching my application from a local drive (c:\mylocapp) : no
problem
The Problem is when I am trying to launch my application from a network
drive : my "W:" is "\\Server\Testappli"
I am using this co... more >>
MemoryStream.Write() Offset cannot be zero
Posted by Gravity at 6/7/2005 12:00:00 AM
Hi,
I am using the MemoryStream class with the member function, Write( ). I
found that the 2 parameter, which supposed to control the offset of the
destination cannot be zero. As long as it is non zero, like 1, 2 or 3, it
will be catch.
Please advise.
... more >>
Install windows service from command line
Posted by Brecht Yperman at 6/7/2005 12:00:00 AM
Hi,
I'm trying to create an application that's, in normal use, nothing but a
simple console application (a server), but can install a service if certain
arguments are passed through.
(compare with, for instance, mysqld and mysqld --install).
Is this possible using .net?
Thanks,
Brecht... more >>
Mac Moves to Intel - Anything for CLR?
Posted by Richard Myers at 6/7/2005 12:00:00 AM
Hello,
With Steve Jobs recently confirming the Apples move away from the IBM Power
PC chipsets and over to Intel, Im wondering what, if anything, will this
mean for the .NET framework and a potential Mac based CLR?
On the face of it Im thinking this means very little. With the CLR
essential... more >>
Hash File Stream?
Posted by Sebastian Dau at 6/6/2005 8:03:17 PM
Hello,
I'm writing a security related application in .NET 1.1
and I wonder how I compute hashes from very large files (up to 1 GB).
Does anybody know a good pattern of how to create a stream from a binary
file
and compute the hash of it?
I appriciate your comments.
Thanks in advance,... more >>
attribute?
Posted by pinetaj at 6/6/2005 4:46:01 PM
This question is about serialization of .NET.
Why a class to be serialized should be defined with [Serializable] attribute?
Is it just a security concern so that a run-time system(CLI) knows that the
class shouldn’t be serialized? Or is there any other reason like a class
without [Serializa... more >>
Populate DataReader
Posted by Roby Eisenbraun Martins at 6/6/2005 11:58:02 AM
Hi,
How can I populate a DataReader without connection or command? or Hpw
can I store a lot of data in a better way?
I don't have all the data at once.
Thank you,
Roby Eisenbraun Martins... more >>
Save a System.Drawing.Color in the db
Posted by Richard Brunet at 6/6/2005 10:15:02 AM
Hi,
I have a DataTable that has a Color type DataColumn. I use
OleDbDataAdapter.Update(myTable) to update the db. Is there a place(an
event?) where i can do a type conversion from Color to string (or int) so
that the value can be saved in the db? What is the preferred way of
saving/reading ... more >>
FrontPage Extensions
Posted by Frank Baed via .NET 247 at 6/6/2005 8:12:49 AM
I am creating an ASP=2ENET Web Application, but I am not using file=
share, I want to use FrontPage extensions=2E MS Devel Environ wont=
let me set up the project because "the project folder can't be=
opened with FrontPage=2E" I have tried reinstalling FrontPage=
Extensions and got an error ... more >>
Self populating collection
Posted by bblac at 6/6/2005 4:10:02 AM
Hi
Has anyone encountered the following situation (I cant believe I am the
first.)
As part of a system I am designing I require a collection class that
populates itself.
So far I have a design along the following lines.
public interface IFactory
{
IItem NewItem();
IItem[] NewItem(... more >>
MSCORCFG
Posted by Chris Holland at 6/6/2005 3:43:02 AM
I have just installed the Beta of the .Net framework version 2 on a test
machine here and it does not install the mscorcfg.msc file anymore - where
has this gone?
--
Chris Holland... more >>
DBConcurrency Exception Handling
Posted by Salim at 6/6/2005 2:29:06 AM
hi,
I am creating a dbconcurrencyexception in my program. Update fails with 0
rows affected message. Because I changed the data in DB from SQL server
front-end after my grid fills with data. i followed the example in msdn. in
the handler, after prompting the user, i read the record from the D... more >>
Implementing an interface by relying on base class
Posted by Gareth at 6/6/2005 1:59:49 AM
Hi,
I'd like to do be able to implement an interface in a derived class by
relying on the base class for some of the members. For example like
this:
Interface ITest
Property prpA() As Integer
Property prpB() As Integer
End Interface
Public MustInherit Class BaseClass
Publ... more >>
TCP Socket not working - Logic issue?
Posted by Gravity at 6/6/2005 12:00:00 AM
Hi,
I have a TCP server running on my desktop. While another TCP client running
on my laptop. Both written in raw C/C++ and they work perfectly fine.
Now I am developing socket application using C# on the same laptop as TCP
client.
It basically connect to the server, send a packet and r... more >>
How to return the pointer of int32 in C# .NET?
Posted by Gravity at 6/6/2005 12:00:00 AM
Hi,
I am a bit shocked that C# got nothing to do with C/C++.
Here is what I wanted to do;
Int32 f_nSomeValue = 200; // Supposed to be 4 bytes long in length, right?
MemoryStream f_MemoryStream = new MemoryStream(20);
f_MemoryStream.Write(&f_nSomeValue, 0 , 4);
The first param of t... more >>
[OT] about VC# express
Posted by Lloyd Dupont at 6/6/2005 12:00:00 AM
is it legal to develop commercial application with VC# express?
... more >>
What is DWORD equivalent in C# .Net?
Posted by Gravity at 6/6/2005 12:00:00 AM
Hi,
As the title indicated, does anyone know the answer?
... more >>
Regular expression induced the program can't respond
Posted by ch2x at 6/6/2005 12:00:00 AM
Now I have a regular expression:
string pattern = @"[\s\S]*?(?<content>\<div
id='news'\>\<div[\s\S]*?\<\/div\>[\s\S]*?\<\/div\>)[\s\S]*";
I want to use this pattern to match a html file's content,and replace the
file's content with ${news}.
But if the content is not match the pattern ,the progr... more >>
How to do simple memcpy in C#?
Posted by Gravity at 6/5/2005 5:31:07 PM
Hi,
I am very new to C#? How could I do a simple memcpy (in C/C++) in C#?
Example; I have a Byte[] Data = new Byte[500];
And I want to copy various things like int32, other bytes etc into various
section of the Data[]. How do I do that?
With C/C++ is rather simple, which is memcpy( ).
... more >>
Send mail in BOTH html and text formats
Posted by Amil Hanish at 6/5/2005 3:09:20 PM
How can I send an email and include BOTH html and text format? Yes, I
already know this is supported in framework 2.0...but how can I do it in
1.1?
amil
... more >>
FileStream.Read method
Posted by Roby Eisenbraun Martins at 6/5/2005 1:08:01 PM
Hi,
Do you know how the method FileStream.Read populate the Char array if
we don't use out or ref?
Thank you,
Roby Eisenbraun Martins
... more >>
Read File Fast
Posted by Roby Eisenbraun Martins at 6/5/2005 1:03:03 PM
Hi,
Which one is the fast way to open a file and read it. If possible
without buffers and any other kind of conversion. I need one step from the
harddisk to the Array.
Right now I am using FileStream. Is this the best way?
Thank you,
Roby Eisenbraun Martins... more >>
Enable a windows form over another one?
Posted by panda at 6/5/2005 12:25:10 PM
I want to disable a form after opening a new one in front of it and i use the
enable property for this as
Form4 newForm = new Form4();
newForm.Show();
this.Enabled = false;
But how can I enable the the previous form over the new form after the job
is finished with the new form tha... more >>
Text Files, Encoding and NewLine character
Posted by Roby Eisenbraun Martins at 6/4/2005 11:00:02 AM
hi,
I'm creating a component to read text files.
I'm using TextReader with Encoding Text component, because there are
several different types of text files and the encoding component translates
the bytes from this file to the correct characters.
To which one of this text fil... more >>
HOW TO CONNECT TO SQL SERVER 2000 DATABASE
Posted by absolute88 at 6/4/2005 7:44:02 AM
Hi Everyone:
I am writing a Pocket PC applicatrion using VB .net 2003. I need to connect
to a remote SQL server database and load records in DataGrid.
Any help in doing so would be very helpfull.
I try ;
Imports System.Data.SqlClient
Dim connection As New SqlConne... more >>
Simple architecture question.
Posted by Kenny M. at 6/3/2005 4:50:02 PM
Hi
I have forty clients applications in different places of the city, they
connect to a DB via Internet, until now the clients report information and
receive information only when they read the DB.(half duplex)
Now I need to be able to send information from the server to the clients
usi... more >>
Finalize Queue (WinDBG / SOS)
Posted by Steve Drake at 6/3/2005 3:15:48 PM
All,
I am playing with WinDBG and SOS.
If I run !FinalizeQueue
I get
SyncBlock to be cleaned up: 0
----------------------------------
generation 0 has 6 finalizable objects (0x0015a370->0x0015a388)
generation 1 has 0 finalizable objects (0x0015a370->0x0015a370)
generation 2 has 0 f... more >>
Strange Excel importing problem
Posted by Rob T at 6/3/2005 2:21:59 PM
I have a routine that imports a list of part numbers into a dataview:
strExcel = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
boxFile.Text & ";Extended Properties=""Excel 8.0;HDR=NO"""
cnnExcel = New OleDbConnection(strExcel)
da = New OleDbDataAdapter("Select * from [ODRJYUFI... more >>
Detecting overriding with reflection?
Posted by Joannes Vermorel [MVS] at 6/3/2005 12:54:25 PM
Given a System.Type, I would like to detect whether the method
object.GetHashCode() has been overriden or not ? How can I achieve that with
reflexion? I have read the MethodBase documentation, but I do not see any
solution for now.
Thanks in advance,
Joannès
http://www.vermorel.com
... more >>
My application works fine in debug mode but does not work in release mode.
Posted by Ariel at 6/3/2005 11:57:36 AM
I have an application that works correctly in debug mode but it does
not work in release.
I am not using anything of the class system.diagnostics.
I tried to disable the optimization code, but this did not work
please I need a solution quickly!!.
Thanks.... more >>
TextBox .text value will not update
Posted by jarred.masterson NO[at]SPAM cheyennesd.net at 6/3/2005 11:15:59 AM
I have several TextBoxs in a datalist control and am allowing a user to
make changes to them. Everything works fine but when I execue the
update command for the datalist and use the FindControl method to read
the value of the text box the changes made by the user are lost and the
value is what ... more >>
Windows service Unable to access mapped drives on XP and 2003 Boxe
Posted by MVB at 6/3/2005 9:11:04 AM
I have written a Windows Service which enumerates the files in a directory.
I am trying the enumerate the files of a mapped drive.It works fine on a
windows 2000 Box.But the same ,does'nt work on a xp or a 2003 machine.
Any Ideas why it would do that???
Thanks
MVB
... more >>
shdocvw
Posted by jose at 6/3/2005 8:33:04 AM
ow resolve this
http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.interop/2004-06/0294.html
i put
[STAThreadAttribute()] or [STAThread()] int he main() but don't work....
thank... more >>
Parameter Methods Performance (val,ref,out)
Posted by Roby Eisenbraun Martins at 6/3/2005 6:49:01 AM
Hi,
I would like to know which one of the following parameter types is faster.
I think is ref because sending a pointer to a class seems to be much more
faster then copy all the class at once in the method call.
But when I was having classes about C# programming in Microsoft Of... more >>
article 829977 - A memory leak condition occurs when you run COM+
Posted by EJ at 6/3/2005 4:07:01 AM
article 829977 - A memory leak condition occurs when you run COM+ 1.0 on a
computer that is running Windows 2000 SP4
When trying to run the hotfix for this on windows 2000 server, I'm having a
problem.
It doesn't run on windows 2000.
Do you have a solution for this problem?
- EJ... more >>
String manipulation
Posted by Craig HB at 6/3/2005 3:14:02 AM
I am using Microsoft.VisualBasic.Strings.InStr() and
Microsoft.VisualBasic.Strings.Mid() to manipulate strings.
Is there a better way ? i.e. by using the framework.
Thanks,
Craig
... more >>
How to tell if PropertyInfo defines a static or instance property
Posted by Robert Matheson at 6/3/2005 2:37:03 AM
Given a PropertyInfo object, how can I determine if the property that it
describes is a static or instance property? The same question applies to
EventInfo.
MethodInfo, ConstructorInfo and FieldInfo all have an IsStatic member, but
PropertyInfo and EventInfo do not have this member, which s... more >>
Process.Start("MyComputer");
Posted by Rob White at 6/3/2005 1:30:20 AM
Hi, I'm trying to launch an instance of explorer from windows that will
default to the "My Computer" branch.
Any suggestions? I've tried:
string myComp = Environment.SpecialFolder.MyComputer.ToString();
System.Diagnostics.Process.Start(myComp);
which fails, is there a special folder that i c... more >>
Checking for implementation of an interface
Posted by Bagger at 6/2/2005 8:51:01 PM
I have an application that accepts plugins. It allows the user to choose
which plugins they want to run from a list of available plugins. My problem
is that I need to build that list of plugins by checking the assemblies in
the plugins folder to see if they implement the plugin interface. I... more >>
Subform ia unexpectedly closing parent form problem
Posted by Stu at 6/2/2005 6:45:35 PM
Hi,
I'm using the .NET environment, writing in C#. I have a windows form
application which is causing me a headache. I have a main form and also a
subform, when I close the subform, the main form also closes, which
obviously terminates the application.
I've checked my dialog result from ... more >>
VB 6 app calling C# windows service
Posted by cyberstrike at 6/2/2005 12:32:11 PM
Hi Guys,
Has anyone written a windows service in C# that used multiple threads, then
wrote a VB 6 application that called the various methods on the C# Service?
Any problems with it?
Thanks... more >>
Call was rejected by callee
Posted by justin at 6/2/2005 10:55:24 AM
Hi,
I am having a problem with a vb.net mappoint application. Currently in my
application I have pushpins that move according to GPS locations that are
constantly being updated. Everything seems to work fine but when I start
using the toolbar functions in the mappoint object while tracki... more >>
Some services stop automatically if they have no work to do, for e
Posted by Chucker at 6/2/2005 9:41:03 AM
I got a Server Class in an executable and I would like to change this in a
windows service. The code from the main function of the executable is the
following:
LoadReportingServer server = new LoadReportingServer ();
server->Start ();
Console::WriteLine (S"Press ENTER to stop the server..... more >>
1.1 and 2.0
Posted by Andy G at 6/2/2005 8:34:55 AM
Can I install the 1.1 framework with the 2.0 framework on the same server
and run VS2003 and VS2005 at the same time? I installed 2.0 on a
workstation and it looks like the 1.1 framework stayed put. If anyone can
clarify this it would be greatly appreciated.
Thanks all,
Andy
... more >>
How to convert char[] buffer into Image?
Posted by Gravity at 6/2/2005 12:00:00 AM
Hi,
Sorry if this question sound stupid, how do I actually convert a char[]
buffer into Image?
I am currently using C# and compact .net framework for PocketPC development.
Thanks for reading.
... more >>
Create forms from threads
Posted by Kevin Chabot at 6/2/2005 12:00:00 AM
Hi,
I need to be able to create one or more form(s) from a method that is
called from different threads. When this form is created, it appears but
it does not receive any message. It looks blank, and when you move your
cursor over it, it becomes an hourglass.
Can anyone help me with this... more >>
Stop WindowsService Application
Posted by Tony at 6/1/2005 10:58:23 AM
Hi,
How can I stop my Windows Service Application. I looked for something like
me.close but found nothing equivalent.
Thanks, Tony
... more >>
tool to analyze file differences
Posted by mavrick101 at 6/1/2005 9:29:04 AM
What will be a good tool to analyze file differences... more >>
Exit Code 67
Posted by dave_uhrenholdt NO[at]SPAM yahoo.com at 6/1/2005 6:40:23 AM
I have a fairly simple Windows Forms application
developed using C#. It basically listens to two
serial ports and displays the results. There are
three threads that each listen to a network socket.
Additionally there is the GUI thread, the two
serial threads, and some threads to process the
... more >>
Transaction spanning multiple business classes
Posted by Klenne at 6/1/2005 6:31:05 AM
Hi
I have a problem on how to span a transaction over multiple business classes
without using COM+
Example:
A existing person get an MailingAddress assigned to
public class PersonService
{
public void InsertMailingAddress(data)
{
//ask the AddressService to insert ... more >>
Windows Service Deployment problem
Posted by PeterW at 6/1/2005 4:01:04 AM
I get the following Log in EventLog on attempting to use a custom action to
write to a config file in the to be installed application after a call to the
base Install method.
The description for Event ID ( 11001 ) in Source ( MsiInstaller ) cannot be
found. The local computer may not have t... more >>
Write to config file from deployment project
Posted by PeterW at 6/1/2005 12:46:06 AM
I have a deployment project where I collect the paths to 4 user defined
directories using user interface textboxes that are then mapped to folders in
the file system editor that are always created. This all works fine.
What I want to do is update the config file for the application so that i... more >>
.Net Framework 2 Beta 2
Posted by Trevor Hardwick at 6/1/2005 12:00:00 AM
Hi
Can anyone tell me what version of mscorlib is shipped with the .net
framework 2 beta 2? On my machine it is 2.0.0.0 and on a colleagues machine
it is 2.0.3600.0. Which is the correct version?
I am havineg problems loading .net 1.1 assemblies when I have the .net2
framework installe... more >>
SP vs .NET results
Posted by wdewebserver at 6/1/2005 12:00:00 AM
Hi
Can someone give me guidance on the following scenario?
I have a windows service application that kicks off a job that perform
complex processing and call a stored procedure that run for +- 45 minutes.
I need a mechanism to notify the service to throw an exception when the
database connect... more >>
|