Im looking for some advice. I have written a little thread that will check to see wether a text file has been updated. It compares the time for example. I as wondering, whats the best way to have a thread execute a method every few seconds without completely bogging down my main thread?
zhyluo2003 wrote: where is a's memory allocated? in the stack or heap?
Memory is allocated for all objects (primitives too). GC cleans it up. Note: That unlike C, everything goes onto the managed heap, so one can "dynamically" create a valuetype array. MS recommends using classes above structs for performance reasons.
Boxing is very expensive. Everytime you add a valuetype to an ArrayList for example it gets boxed (and making a typed collection doesnt get rid of it AFAIK). With a class you dont get that. Unfortunately the only place I could find something now, is in the EMCA 335 spec Partition 5
D.3. Type Usage Guidelines
D.3.1. Class Usage Guidelines
• Do favor using classes over any other type (i.e. interfaces or value types)
On the MSDN/C# homepage there is only a very informative article on performance.
Can anyone help me in using matlab applications inside c#?
how to access matlab ?
i have tried to add a reference to matlab application COM object , and i found a class MlApp , i used it and found all functions , but when i run the program i have the following exception
"QueryInterface for DIMapp failed"
how can i deal with that?
As I am new to C# programming in general i am finding it very difficult to accomplish the following.
I have simple widow’s forms program with a text box, button and a list box. I need to be able to enter in a group name into the txt box and have all the users of the group be returned into the list box.
I have been going nuts trying to understand Windows Directory Services etc.
i have seen a lot of key loggers which record each and every thing which is typed. I need some help in developing this type of application.
if some one have done this sort of work or know about any tutorial over te web then plzz tell me.
I've got a windows form application with a listview control on it. In my list control, I'm going to have some negative numbers from calculations. Does anyone one know how to color a list view item? I'd like to color a subitem in the listview say red, if it's value is a negative number. I'd only want to color certian items, not an entire row in the listview.
I am having problem coming up with regular expression pattern to give me the full matching tag, that is, like
<a href="http://myserver.com/mydir/ads/page.htm">Test link 1</a>
....when i am scanning for keyword '/ads'..
of coz the scanning is a loop, and the keyword is stored in a variable .. e.g. strKey.
the pattern : @"<a\s.*\shref=\S*", strKey, @"\S*(>|\s)"
doesnt work as it would return anything between the first "<a" (no qoutes) and the last space.
the pattern: @"href=\S*", strKey, @"\S*(>|\s)"
does not give the result i wanted.
I have tried to refer to MSDN, but things seem complex and beyond my understanding capability. I really hope someone
can help me to come up with the right regex pattern.
the tags i will (have to) examine include ... IMG SRC, A HREF, IFRAME SRC
Last Visit: 31-Dec-99 18:00 Last Update: 27-Sep-23 14:10