all groups > c# > march 2008 > threads for wednesday march 26
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 31
Thread memory consumption
Posted by Brian Stoop at 3/26/2008 7:35:20 PM
My .NET 1.1 program allocates many Threads that loop making database calls
and other stuff.
Thread1 = new Thread(new ThreadStart(this.Thread1));
Thread1.Start();
Thread2 = new Thread(new ThreadStart(this.Thread2));
Thread2.Start();
while(true){
Thread.Sleep(1000);
}
How can I t... more >>
Is it possible to write a Firefox Plugin in C#?
Posted by thephatp at 3/26/2008 7:28:13 PM
I'm completely new to plugins for Firefox, and I don't know if it's
possible to write one in C#. I've written a quick BHO for IE, and I'd
like to do the equivalent for Firefox, but I'd really prefer it be in
C#. If I have to do in C++ I can, it will just take me a lot longer.
So, is it even ... more >>
What is List<int> numQuery2 =
Posted by Ant at 3/26/2008 6:49:00 PM
Hi,
I found in MSDN some sample code:
List<int> numQry = ...etc
I couldn't find any info in MSDN on List or <int> though.
Does anybody know what this is & in which namespace it belongs in?
Many thanks for any help
Ant
... more >>
e.Graphics.DrawString
Posted by Tony Johansson at 3/26/2008 6:29:26 PM
Hello!
If I use the DrawString below with object of StringFormat as the last object
it works good.
If I instead remove object StringFormat below as the last object of
DrawString I get some rows that are not printed correctly.
It's look like when toner is too low for the printer.This is only... more >>
Tree Structures
Posted by Jon Slaughter at 3/26/2008 5:28:22 PM
Is there any way to do an arbitrary recursive structure that is also
typesafe? (or somewhat. The issue being the last "leafs" in the structure)
I'm thinking one could create a class that is basically a parent and child
and if child is null then its the last elements ones in the list. Or is
t... more >>
Strange DateTime Problem
Posted by Looch at 3/26/2008 3:30:27 PM
All,
I'm using a WinForm app that calls methods on a remotable object. The
app server hosting the object is in New York. Using the same exact
application, a Sql Server 2005 datetime column's info is being
displayed as '3/25/2008' in California and '3/26/2008' in New York
(outside the LAN) whe... more >>
marshal array of formatted blittable classes
Posted by jonpb at 3/26/2008 3:05:02 PM
Hi,
I would like to pass an array of formatted blittable classes through
P/Invoke to a C++ dll, but it is not working. Here are the definitions:
C++
struct Point2Rec
{
double x;
double y;
};
void WINAPI AddPolyToList(Point2Rec* pg1, int numPts);
C#
[StructLayout(LayoutK... more >>
Registry question (debug three lines of code for me?)
Posted by Jim Margarit at 3/26/2008 2:56:24 PM
copied from MSDN help on Registry class:
string[] tArray = (string[])Registry.GetValue(keyName,"TestArray",
newstring[] {"Default if TestArray does not exist."});
Here's my code:
string[] defaultExt = {".mp4",".avi"};
string[] validExts;
validExts = (string[])Registry.GetValue("myTes... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
csc error
Posted by CSharper at 3/26/2008 2:10:45 PM
When I try to compile a C# application using the command line code I
am getting the following error;
App.xaml.cs(line,column): error cs0246: The type or namespace name
'Application' could not be found
I tried looking for System.* under c:\windows\microsoft.net\framework
\v3.5 and there are ... more >>
.FindControl not seeing control
Posted by rodchar at 3/26/2008 2:09:00 PM
hey all,
i've added a dropdownlist object into tableCell td in my code
further down the code
i inspect the td.Controls
and i can see the the dropdownlist bright as day.
however, when i try to do
td.FindControl('id')
it returns null?
any ideas off the top why this may be?
thanks,
rodch... more >>
delimited string test
Posted by rodchar at 3/26/2008 1:31:03 PM
hey all,
let's say you have a delimited string value of
String value = val1,val2,val3;
and you do something like the following
String s = value.split(',')[3];
well this is outside the range of index, so how can i say if this does occur
just make it an empty string and proceed?
than... more >>
Handling null values returned via SQL ExecuteScalar() query
Posted by Anodes at 3/26/2008 1:05:28 PM
How do I test for and handle a return of null in the following code?
try
{
OleDbConnection connection = new
OleDbConnection(connectionString);
connection.Open();
OleDbCommand command = new OleDbComman... more >>
App Deployment with Crystal Reports and XCOPY (VS2005)
Posted by Liz at 3/26/2008 12:32:03 PM
I was intending to use an XCOPY install for a VS2005 C# WinForms app but
when I copied the files and ran the app on a clean machine it failed when it
needed Crystal Reports. Can you not use XCOPY deployment if you have
Crystal Reports dependencies?
Is there an available Crystal redistrib... more >>
WCF error deserializing my Response Object
Posted by galtulsa at 3/26/2008 11:51:02 AM
{"Type 'System.Object[]' cannot be added to list of known types since another
type 'System.Collections.ArrayList' with the same data contract name
'http://schemas.microsoft.com/2003/10/Serialization/Arrays:ArrayOfanyType' is
already present."}
Error deserializing my Response Object
... more >>
Windows file explorer type window pane
Posted by colin at 3/26/2008 11:39:16 AM
Hi,
I have a tree view much like in windows explorer (the one for files not IE)
it basically lets me view my computer and any drive/directory much like
explorer
but with the ability to filter only directories wich contain the files my
application.
uses wich makes it much easier.
im us... more >>
Kick start your career in consulting with Aegis School of Business's One Year MBA/PGP
Posted by mba news at 3/26/2008 11:27:40 AM
Dear Candidate
Let me introduce you to great career opportunities at Aegis, Mumbai.
Aegis School of
Business, a leading Business School based in Mumbai, India, offers One
Year PGP/MBA, Two Year PGDip in Retail, Masters in Telecommunication
Management Program (MPTM) and One Year Masters in In... more >>
Question on Context menus
Posted by Dom at 3/26/2008 11:24:50 AM
I have a number of controls that use the same context menus. In some
events, I need to know which control is showing the menu. I just use
whichever control has the "focused" property, since I assume one of
them must. Is this the correct way?
Dom... more >>
C# .Net SQL Server Connections
Posted by chodge at 3/26/2008 10:40:05 AM
I have created an app in VS 2005 C# using .Net connecting to a corporate SQL
2000 Server. When connecting at the main office all is well. When connecting
from one of our remote locations the connection is slow (T1). This results in
inacurate data being displayed after GetData and Fill operatio... more >>
Object Browser
Posted by AA2e72E at 3/26/2008 10:36:19 AM
I need some tips on enumerating the names and syntax of properties, methods,
events, and public variables, enums, user-defined types in a COM,
programatically in C# ... a little like Object Browser in VS2006 but without
the IDE.
Thanks for your help.... more >>
interface implementation and inheritance.
Posted by parez at 3/26/2008 10:29:01 AM
Is it a good idea(or is it possible) for to implement half an
interface in base class and half in derived class.
e.g Interface IMyinterface has 3 properties.
Class B and C inherit class A, and implement implement IMyinteface.
Class A implements Propety1 of the interface IMyinterfac... more >>
OutOfMemoryException When Allocating Huge Objects That Use Lots of RAM on 64-bit Machine
Posted by powwow at 3/26/2008 10:09:14 AM
I am running out of memory (OutOfMemoryException) when I do something
like this:
Hashtable h = new Hashtable(10000000);
It doesn't seem to use all of the RAM on the machine. I have 4GB of
RAM installed.
I have a 64 bit OS (Windows Vista). I have 64 bit CPU. (Intel Quad
Core). So no 32... more >>
Packaging fonts into a windows exe
Posted by Matthias S. at 3/26/2008 10:06:59 AM
hi there,
can anyone tell me whether it is possible to pack a font into a .net
2.0 windows application (resource)? i need to use the font within the
application, but i don't want to distribute it as a ttf file. i've read
on msdn that this is possible through wpf in .net 3.0 but can't find
any... more >>
How to make my methods dynamic?
Posted by Tino Donderwinkel at 3/26/2008 10:01:22 AM
Hi,
Currently I have the the following methods in my class;
public Circle LoadCircle(int a) {
Circle result = new Circle();
...
return result;
}
public Cube LoadCube(int a) {
Cube result = new Cube();
...
return result;
}
I want to make a Dynamic Method 'Loa... more >>
using 7zip in c#
Posted by nologo at 3/26/2008 8:52:44 AM
All,
i'm using 7zip to archive data that my application produces, the
following code fails to work. The problem is, the code seems to
redirect where its looking for the 7z.exe to where-ever the
SaveFileDialog is pointed at to save the document.
if (this.saveFileDialog1.ShowDialog(this) != Dial... more >>
Using IComparer to Sort a String Array
Posted by Jeta at 3/26/2008 7:21:43 AM
Hello All,
I stumped and I need some help. I have an unsorted string array that looks
something like:
AA
XXX
Z
and I would like to sort it like:
Z
AA
XXX
or like:
XXX
AA
Z
My research has lead me to using the IComparer interface. What I am having
difficulties with is develop... more >>
datatablecollection and missing schema
Posted by rodchar at 3/26/2008 7:05:03 AM
hey all,
i noticed if i use the missing schema to fill a datatablecollection the
table names are generic (Table, Table1, Table2)
is there anyway to change that? i tried on the sql side to use an alias for
the table name but i don't think that work when i tried to debug.
thanks,
rodchar... more >>
compiling to IL code
Posted by CSharper at 3/26/2008 6:37:10 AM
Could someone tell me how to compile a project to IL code? Let me
explain the reason. I have a program which will read a resource file
and creates some output. In this scenario, the program doesn't change,
but every month, I need to do a new release and and only thing it
changes is the resource ... more >>
SOT: VS 2k8 have the ability to automatic event handling
Posted by Jon Slaughter at 3/26/2008 5:25:17 AM
I know this isn't a VS specific NG but I'm curious as to if VS can automate
handling events in the designer. The issue is that when I, say, double click
a control it has some default event attached to it but what about in
general? I can't find any place where I can select the event to add and ... more >>
Listview with column item's as tree's
Posted by Jon Slaughter at 3/26/2008 5:03:39 AM
How do I add the ability to combine listview with treeview? I want to have a
list view but with some items in some columns to have the ability to act as
a tree instead of just a single item. (like, say, how outlook express does
it with its message headers)
Is it possible with ListView? I ha... more >>
Does setting object reference to null help the GC in collection
Posted by Shree at 3/26/2008 1:54:47 AM
I am having this confusion going on in my head for sometime now. The
question is whether setting the object reference to null (nothing)
help the GC in collection in anyway?
Can anyone shed some light on this? Is there any way to validate this
proposition? Or is it just a myth...
-Thanks,
Shr... more >>
Deriving from IList question
Posted by Bart at 3/26/2008 12:40:25 AM
Hi all,
I have created a class which derives fron IList.
It looks like this:
public class Signals<Signal>: IList<Signal>
But I don't know how to impement the next section.
#region IEnumerable Members
System.Collections.IEnumerator
System.Collections.IEnumerable.GetEnumerator()
{... more >>
|