|
I found the answer in the MSDN. It's in the index at Threads->Creating at the bottom of the page.
Windows 98 (win-doze): a 32 bit Extension to a 16 bit Graphical Shell of an 8 bit Operating System originally coded for a 4 bit Processor by a 2 bit company that can't stand one bit of competition.
|
|
|
|
|
hi,
i have an app that makes aspnet_wp only grow in memory.
It's causing us a lot of problems.
I'd like to know which is the best way of finding if there's a memory leak.
We access some COM+ components, and we think it could be them. Which is the best way to find out it? And, if the COM+ components are guilty, which is the best way of cleaning the memory they use?
thanks in advance
the trooper
|
|
|
|
|
Do you have Visual Studio.NET Enterprise Developer or Architect? 'Cause if you do, then you can use the Visual Studio Analyzer and it'll tell you just about everything you wanted to know about your app.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
Anonymous wrote:
which is the best way of cleaning the memory they use?
Use System.Runtime.InteropServices.Marshal.ReleaseComObject(object)
"In an organization, each person rises to the level of his own incompetence." Peter's Principle
|
|
|
|
|
Hello!
Is there any chance or possibility to transfer a c# program into a
SuSe-Linux platform? So I know, Microsoft don't offer a platform SDK
for LINUX.
Can you help???
|
|
|
|
|
|
How do I?
Or, to be a little more precise, I would like to suck homemade audio samples from an buffer (e.g., noise might be a gaussian distribution of integers between + -32K)and feed them at the right rate to a soundcard (audio device) for real-time play. (I'm not trying to play an existing, saved wav file.) A simple application would be a VCO (oscillator with a slider controlling the frequency).
In the .net world, is this done by DirectX? By the WINAPI? wavePlay? Magic? Not at all?
Background note: a wavetable might contain one complete waveform of a sample, and the buffer might have as many repetitions of the sample as maching performance allows.
|
|
|
|
|
Have a look at my article http://www.codeproject.com/useritems/nBASS.asp[^]. That is one feature I havent tested yet, but the BASS API can do that. (just had a look, and I havent done that yet havent had a need really, but you can load from a short[](16-bit) and play that. It is something I have been playing with recently, so it mite not be in the version on CP. Give me shout if its not there. Look for these functions: nBASS.BASS.LoadStream that takes a short[] as a parameter.
Cheers
PS: If you can mail me a "RAW" audio file, I will try make it work.
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Hi,
Please help me !
How can I get list of the pages in IE history ?
(i need only pages, that are shown when i click on arrow in ComboBox in IE adress panel)
Thank you
|
|
|
|
|
HKCU\Software\Microsoft\Internet Explorer\TypedURLs
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Thank you!
|
|
|
|
|
I have a simple program with a NotifyIcon. I have set up my project to handle the NotifyIcon.MouseUp event.
private void notifyIcon_MouseUp(object sender, MouseEventArgs e)
{
// for some odd reason, this line always display "X=0;Y=0";
Console.WriteLine("X={0};Y={1};", e.X, e.Y);
}
The MouseEventArgs class passes information about the X and Y coordinates of the mouse click. But for some reason, it also passes X=0,Y=0 ?! I would expect to get the screen coordinates of the mouse click? has anyone noticed this? is this a bug?
|
|
|
|
|
Is that true?
Thanks,
Marc
|
|
|
|
|
Thats the normal way things work.
Where would you know where to set the point, without the debug information (which is contained within the debug release) there is no way for the debugger to relate the compiled file back to the source code.
No doubt someone could/will come up with a more detailed answer but thats the gist of it.
Dave
|
|
|
|
|
How do you scroll a C# Listview vertically automatically? I am looking for something similar to what you see in SQL Server profiler..it's not very difficult to accomplish this in MFC, but in C# I can't find a ScrollWindow type of function for the Listview or anything else...
|
|
|
|
|
|
Well I am in need of a MDX function parser and do not want to reinvent the wheel.
anyone know where I can find one?
|
|
|
|
|
Hi,
I have a listView control to display some command execution results. One of the features I need to implement is to print out this control. I have been investigating on System.Drawing.Printing but not found things I could use (directly). Can someone help me out and tell me where to start it? Thank you very much!;)
|
|
|
|
|
is it help
http://www.codeproject.com/combobox/print_preview_listbox.asp
shmuelt tauber
ministry of trade
Israel
|
|
|
|
|
Interesting problem I've encountered. I'm creating an override to a TabControl as well as a TabPage.
public class MyTabControl : TabControl<br />
{<br />
...<br />
}<br />
<br />
public class MyTabPage : TabPage<br />
{<br />
...<br />
}
When I view MyTabControl inside of the property control, I can click on 'TabPages - Collection' and view the collection of TabPages.
But I want the 'Add' button to create me a MyTabPage instead of the TabPage in my overridden control.
Is there any way to tell the PropertyGrid what my overridden collection type is?
|
|
|
|
|
psdavis wrote:
When I view MyTabControl inside of the property control, I can click on 'TabPages - Collection' and view the collection of TabPages.
But I want the 'Add' button to create me a MyTabPage instead of the TabPage in my overridden control.
You will need to override the indexer ( this[] ) in your TabPageCollection derived class. Thats it. Have a look at the COllectionEditor class.
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
My problem:
There is a string contains some patterns, same as below:
<br />
expr = "(X, <OS:Size>, Z), (X, <OS:Type>, Y), (X, <OS:DateModified>, W), (X, <PDF:Title>, U)";<br />
I want to put repeated pattern "( , < >, )" to items of a string array. For example:
<br />
str[0] = "(X, <OS:Size>, Z)";<br />
str[1] = "(X, <OS:Type>, Y)";<br />
str[2] = "(X, <OS:DateModified>, W)";<br />
str[3] = "(X, <PDF:Title>, U)";
How can I implement above? Can I write the same program using Regular Expression and Match? How?
Mehdi
|
|
|
|
|
Not easily, but you could use Regex.Split(expr, "), (|(|)") to break it down to
str[0] = "";
str[1] = "X, <os:size>, Z";
str[2] = "X, <os:type>, Y";
str[3] = "X, <os:datemodified>, W";
str[4] = "X, <pdf:title>, U";
str[5] = "";
OR you could use Regex.Match to create a MatchCollection. It might be a fairly complicated Expression though, something like @"\(\S,\s\S+,\s\S\)" I dunno, I just pulled that off the top of my head. I'm not sure if a "(" can be denoted as "\(" or not. \S is non-whitespace, \S+ is multiple non-whitespace, \s is whitespace.
Paul
|
|
|
|
|
This should work:
using System.Text.RegularExpressions;
...
string expr = "(X, <OS:Size>, Z), (X, <OS:Type>, Y), (X, <OS:DateModified>, W), (X, <PDF:Title>, U)";
Regex re = new Regex("(\\([^,]*,\\s*<[^>]*>,[^)]*\\))");
MatchCollection matches = re.Matches(expr);
string[] str = new string[matches.Count];
for (int i=0; i < matches.Count; i++)
str[i] = matches[i].Value; Explanation of the regular expression:(...) - Capture the result of this expression as a match;\\(...\\) - The expression is contained within regular brackets. NB: The bracket must be escaped, since it has special meaning for regular expressions. Since this is a normal C# string, the escape character must also be escaped;[^,]*,... - Match anything except a comma zero or more times, followed by a comma;...\\s*... - Match zero or more white-space characters;...<[^>]*>,... - Match the < charcter, followed by zero or more characters which are not >, followed by >, followed by a comma;...[^)]* - Match anything except a closing bracket.
To avoid having to escape the escape characters, you could make the regular expression string a verbatim string, by prefixing it with the @ symbol:
Regex re = new Regex(@"(\([^,]*,\s*<[^>]*>,[^)]*\))");
|
|
|
|
|
I am working with some data that is being passed to me in byte[]. However, the data actually represents an array of short(s) or an array of some other value types. For example, I get an array of 8 bytes, but I need to look at it as an array of 2 int(s). There have to be some kind of way to do the conversion, but I cannot seem to think of one.
I could use some pointers...
Please let me know if you have any suggestions on what is the best way to convert byte arrays into arrays of other types.
Thank you in advance.
Kostya.
|
|
|
|
|