|
I was actually remarking on the fact that the side effect of setting this specific property to itself would be something so drastic/unexpected, not on the fact that setting a property can have side-effects.
I discovered this memory phenomenon quite by accident as I was experimenting, rather than by deducing what methods to call, etc. I haven't taken the time to dig into what's going on under the covers, but I think it's pretty cool and I'm surprised/glad I stumbled upon it. That's all I meant.
|
|
|
|
|
In the modern age of AUTOMATIC memory management, why is this even a concern?????
Never once have I considered the memory reserved by the framework to be a problem. I've had a few customers ask, and with a quick explanation of how the .NET Framework starts out reserving more memory than it actually needs for it's self-tuning performance, and releasing it back to Windows when Windows demands it, the issue is dropped.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
However, it seems that initially the .NET framework reserves even more memory than it needs to have in reserve for performance reasons. Ever notice how the total memory usage drops dramatically when minimizing and then restoring? If that caused a drop in performance, then we would have to advise everyone using our software that in order to maximize performance they should never minimize the app, explaining that it's just a quirk of the runtime
Is this an important issue? Not really, at least technologically speaking. It's just one of aesthetics. And pretty numbers speak loudly, so if I can provide a product that works, performs well, and has lower apparent memory consumption as well, I'm going to. Especially since I can do it (well, the memory consumption thing at least ) with one line of code.
|
|
|
|
|
gonzotuna wrote: Ever notice how the total memory usage drops dramatically when minimizing and then restoring?
We all have. It also just doesn't matter, since when Windows wants the memory back, the runtime is more than happy to return it.
gonzotuna wrote: And pretty numbers speak loudly
Only if the numbers actually mean something. If the customer wants an app based on "pretty numbers", that's a customer I don't want. I deal in meeting the customers functionality requirements, not the b/s they think they want and don't really understand. I don't waste my time "lying" to the customer about the memory requirements of their app. If they're equipment is so tight on memory, it usually means their checkbook is just as tight and their payment will show up 6 months late.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Once you minimize .NET application or set this property, memory swapped to disk which increase page faults and decrease application's performance. Working set is misleading parameter for .NET applications memory usage.
Read this:
How much memory does my .NET application use?
|
|
|
|
|
I have a Vb Scripting problem with .NET C# application and also
in Asp.NET.
I have written COM component in VC 6.0 , which execute a VBScript
and return a Recordset.
This componet is perfetly working with VC 6 ,VB 6 applications
but it does not work with .Net
the component is which exposes an interface method
GetCustAdoRecordset
{
========= do the script code here
}
CMyScriptSite::public IActiveScriptSite
{
}
..........
iActiveScript->AddNamedItem(L"MyScriptExicuter", SCRIPTITEM_ISVISIBLE
| SCRIPTITEM_ISSOURCE | SCRIPTTEXT_ISPERSISTENT)
.......
this class is my event handling class
CMyScriptExecuter::public CCmdTarget
{
...
...
// here gobal variables are set and passed to the script engine
BEGIN_DISPATCH_MAP(CMyScriptExecuter, CCmdTarget)
//{{AFX_DISPATCH_MAP(CMyScriptExecuter)
DISP_PROPERTY(CMyScriptExecuter, "MycustTime", m_custTime, VT_DATE)
DISP_PROPERTY_EX(CMyScriptExecuter, "TestCount", GetTestCount,
SetNotSupported, VT_I4)
DISP_FUNCTION(CMyScriptExecuter, "mymethod", mymethod, VT_EMPTY,
VTS_BSTR)
...
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
}
The above message map code is not executing while running from .net.
Can u kindly give a solution for this, is it a .net problem or any
thing else
===============================
thomachanpv
|
|
|
|
|
This may be a dumb question, but is there a WinForms equivalent of the good old CStatic control used to create lines (and rectangular areas)?
Thanks,
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
|
Yes, I saw this[^] which looks quite nice. I'm a bit surprised why MS excluded the static frame control in WinForms.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Use a label. Set height (if horizontal line) or width (if vertical line) to 2 or 3. Set style to 3d and this will do the trick.
- Malhar
|
|
|
|
|
Thanks (as always!). I'll try this approach.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
How a windows and web pages are Executed in .Net Framework
using c#.net
sowjanya kumar
|
|
|
|
|
Could you clearify what you mean? I understand that you are interrested in the execution of something, but it's unclear if you like to execute something, or if want to know how the execution works.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I've just exported my VS2003 project to VS2005. The First thing that troubled me is the performance issue with DataView.RowFilter which is almost 10 times slower in .NET 2.0 !!!
I have the same problem with BindingSource.Filter (which of course I believe uses the RowFilter anyways), then I've made no modifications to the project, meaning (using DataView.RowFilter) and still have this problem (10 secs for somefield Like '%something%') for 70000 Rows, which in NET 1.1 is something like 1 sec.
Thanks.
|
|
|
|
|
Hi guys,
I am working a .NET windows application using C#. I have placed a
web browse control in my Windows Form in order to show many types of documents like word doc, text file, ms excel sheet, images or even flash animation etc. There are three panels in this Form. On the left panel there's a Directory tree just like we see in Windows Explorer. The Top panel contains a list of documents in the currently selected directory. I have placed the web browser control in the third panle which is right below the top panel. When the user selects a document (word, excel etc.) it is opened and viewed in the browser control. So far so good. Now the problem occurs when the user selects a document and it is opened for view and he wants to delete it by using the shortcut menu option which is provided by me. The system throws
an exception when i attempt to delete this document from the os directory and says like "The file is in use by another process.". This occurs even if the user selects another document and the application attempts to delete the 'previously' selected document again. This is for sure that the process which is running my app has not yet destroyed the handle of the document, but i don't know how to destory it. I guess the only solution could be P/Invoke but don't know which API functions have to be used. Anybody could help getting rid of this?
thanks
bABURmAN
|
|
|
|
|
Hi,
I have a windows form application with a BackgroundWorker. The user has to stop the backgroundWorker by clicking a button. I would like to indicate that it is still running by using some kind of (continuous ?) progress bar (like the progress bar appearing when Windows XP starts). Is there any easy way to implement this?
Thanks in advance.
|
|
|
|
|
If you just want to create a progress bar that never ends - i.e. you don't know how long the background thread is going to take, then this[^] article might help you (or this[^] one for C#)
Cheers,
Will H
|
|
|
|
|
hi,
i added xpdfviewer control to the vb.net proj. But unable to handle the events of control. Is there any importstatement should i add.
raj
|
|
|
|
|
hello everyone...
i'm using the new ToolStripMenuItem instead of MenuItem but i couldn't find the Index property which gives the position of the menu item if it is a submenu...can somebody tell me how to get it...
|
|
|
|
|
also i noticed that there's no MenuItem property!!!which of course returns the submenuitems...
|
|
|
|
|
I've been developing a small app in C#, that uses an Access DB.
When the idea to sell it came, I began to wonder... Can I?
I mean. I use an access created .mdb file to store my data. So... does anyone know how the licencing things are handled on matters like this?
Thanks.
|
|
|
|
|
Verify this for yourself, this is what I have found...
There are three cases:
1. If the developer builds a solution in an application that includes Jet but does not have a runtime version, for example Microsoft Excel or Microsoft Office, they must purchase and install a copy of the application on each user's desktop for their solution to run correctly.
2. If the developer builds a solution in an application that includes Jet and provides a runtime license or compilation, for example Microsoft Access (with the Microsoft Access Developers Toolkit), Microsoft Visual Basic, or Microsoft Visual C++, subject to the end user license agreements accompanying each of these products, they can build and distribute their solution to users with a runtime version or as a compiled application (.EXE).
3. If the developer builds a solution in an application which does NOT include Jet, but relies on Jet, (for example, Microsoft Project or Microsoft Visual FoxPro™) they face two requirements. First, they must adhere to the license agreement for the application they used to develop the solution. Second, they must purchase and install a copy of a Microsoft application or tool which DOES include Jet on the user's desktop.
You want #2 and #3 I believe. I'm no good at decyphering this lawyer speek.
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnaraccessdev/html/ODC_JetDatabaseEngineLicensingandSolutionDistribution.asp[^]
Also found this:
Access 2003 Developer Extensions are part of the new Visual Studio Tools for the Microsoft Office System software package.
Licensing and Distribution Rights
The licensing agreements included with Access 2003 Developer Extensions simplify the distribution of solutions or code segments. They include a royalty-free Access Runtime, which allows for the distribution of Access solutions and Access Data Projects, and free use and distribution of portions of the tools source code as part of your solutions.
http://msdn.microsoft.com/office/technologyinfo/devtools/accessextensions/default.aspx[^]
Matthew Hazlett
Sometimes I miss the simpler DOS days of Borland Turbo Pascal (but not very often).
-- modified at 23:08 Friday 27th January, 2006
|
|
|
|
|
Hi,
Am running the .NET Framework 1.1 and need to send e-mail via an SMTP connection via an SSL-enabled connection (for example, a GoogleMail account connection).
I have worked around the POP3 connection to receive e-mail using open source components online. But can anyone either give me, or point me in the direction of, advice on how to implement Secure Socket Layer on the SMTP connection in .NET 1.1
Thanks in advance!
Fred
|
|
|
|
|
In .NET 1.1, I don't think there is any support for SSL SMTP. In 2.0, there is the System.Net.Mail implementation that is a SMTP client that I think implements SSL.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am having problems getting the column order in a DataGridView object to display how I want it. Here are my objects:
Data object
<br />
class CData<br />
{<br />
private uint id;<br />
private string name;<br />
private object otherstuff;<br />
...
public uint ID{<br />
get{ return id; }<br />
set{ id = value; }<br />
}<br />
...
I then create multiple CData objects and place them in a List<CData> object "myList". When I go to bind this list to a DataGridView I use the following code
<br />
BindingList<CData> bindlist = new BindingList<CData>(myList);<br />
myDataGridView.DataSource = bindlist;<br />
myDataGridView.Refresh()<br />
the problem comes when my form is shown and my data is presented. Currently I can not figure out how to order the columns generated from my CData class properties. By default I thought they would show up in the order that they are declared like:
| ID | Name | OtherData |
but I find that the order is chosen at random (or some other factor I can not figure out) and they display something like:
| OtherData | ID | Name |
Now normally this wouldnt be too big of a problem but in my real world application I am using a Data object with over 100 fields which are generated from a file with a strict structure layout and it is critical that I see my columns in the proper order.
I hope I explained this properly and would appreciate any help that can be offered on the matter.
Thank you.
PS: If some moderator or something feels I will get more response in the C# forum, please move this post or advise me to move it.
There are only 10 types of people in this world; Those who understand binary, and those who don't.
-- modified at 17:30 Friday 27th January, 2006
|
|
|
|