|
Colin Angus Mackay wrote: Also large items, such as bitmaps, go directly into the generation 2 heap which is cleaned up less frequently (meaning it will stay in memory longer)
Actually, large objects will go on the large object heap, which is different than Gen2. Also, the LOH isn't compacted but it is collected everytime Gen2 is collected.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Looks like I'll have to reread the chapter on garbage collection - I thought Gen2 was the same as the LOH (just synonyms for each other)
|
|
|
|
|
Hi Guys,
If you any idea regarding developing application in c# like Visio does
Drag and drop the shapes
Resize
Rotate .
Please let me know as soon as possible.
Regards
subash
Subash
|
|
|
|
|
|
nhss wrote: Please let me know as soon as possible.
No. The tone of the question is too rude for me to be bothered.
|
|
|
|
|
Hello everybody,
I want to design only one master page for different type of users. Menu items should display accoding to permission for a user type. To design, i have used menu tool. I want to connect the menu with different sitemaps, because sitemap stores xml data. I will provide all sitemap with different names menually. When someone logging in it will check the user type and set menu items accordingly.
But sitemap datasource by default connect with web.sitemap and shows menu. There is no option found to menually set other sitemaps for a menu.
How can i link with other sitemap at runtime? And how can i design this type of master page? If there is any other process, please tell me.
Please help me.........
Thank you in advance.
Dipak
|
|
|
|
|
You can do this by adding multiple sitemap providers..
1. Add a new provider in web.config (Here XmlSiteMapProvider1 is the new one)
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" description="default." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
<add name="XmlSiteMapProvider1" description="extra." type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web2.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
2. You can point different SiteMapProvider to the sitemapdatasource
<asp:sitemapdatasource SiteMapProvider="XmlSiteMapProvider1" id="SiteMapDataSource1" runat="server" startingnodeoffset="0" />
*jaans
|
|
|
|
|
Where can I find online code examples so I don't have to keep refering to my books when I want to check that my code is right? Yes I know, being lazy and what not, but deep down, we all want the quickest shortest route!
Shot
|
|
|
|
|
MSDN? Alternatively, make use of the code snippets manager in Visual Studio.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I want to be able to take only certain data from a .txt file and display it on my page... the example is this. I want to be able to select all the data inserted in that .txt file where there is a specific date ie. 30 January 2008. Where I have the problem is selecting data that falls across more than one lines in the text file, remembering that the next date is coming up a couple lines later and I don't want to use that data that coincides with that date.
Any advice?
Thanx
Dan
|
|
|
|
|
Loop through the file line by line. Take which bits of data you need. Without knowing more about the file structure I can't be of further help.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
What if I dont know what data I need? All I know is the date that links me to whatever data coincides with that date. What can I use as a exit from the loop in that case?
example of text:
26 January 2008
Go to Dentist
Eat toast
27 January 2008
Sleep
Write books
28 January 2008
...
and so on...
|
|
|
|
|
Being ill at home I thought I'd write you the pseudocode for how to do this.
So this is one of the ways you can do this - just pop the relevant C# in there:
displayline = false
while not readline end of file
if line is date
if date is selecteddate
displayline = true
else
displayline = false
endif
endif
if displayline
display line to screen
endif
while end
You always pass failure on the way to success.
|
|
|
|
|
I want with click on Image get cartesian cordinate from image(X,Y)in c#
please help me
|
|
|
|
|
Just use the MouseDown-event of the control containing your image
|
|
|
|
|
Hi,
I am doing an application in WPF. The application is in maximized state with no minimize and maximize box.However on double clicking over the tool bar, the application got minimized. I have to always keep it in maximized state that would work in all resolutions. Please help me.
|
|
|
|
|
You can have the line Me.WindowState = FormWindowState.Maximized in your
Form1_SizeChanged event.
|
|
|
|
|
Hai Everybody,
I have a dataset and I am binding the same to a combo box in windows application.
I want a item named "Select" to be in the top and it should be the default one.
Can any one tell me how to add an extra item after binding the combo box with the datasource.
Thanks in advance.
|
|
|
|
|
You can just add it in the form designer and switch on AppendDataBoundItems.
Or you'll have to go with adding it after with ddl.Items.Insert(0, "Select...");
|
|
|
|
|
Thanks a lot.
Actually I have set the text as "Select", but I have forgot to change the drop down style.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Why have you deleted your original message? You got an answer to your question, so what's the problem?
It's considered rude to do this.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I am running msinfo32.exe programmatically in my application to output the system information. When this runs especially on windows 2000 sp4, it is scanning the floppy drive and resulting in some noise.
How can i avoid it from scanning the floppy drive?
Thanks.
|
|
|
|
|
|
Maybe it doesn't like it when you put questions into unrelated questions.
|
|
|
|
|
Hi all,
I have to make a library to convert the Color from Lab value to RGB value. However, it requires an algorithms to do so.
I read some documents, it mentioned that the steps should be
1. Lab -> XYZ
2. XYZ -> RGB
I really have no idea what the calculation should be.
I hope to fine some example from here, as I think some of the experts
must have done the same things, or have this experience.
Could you please provide me some examples? Thanks Thanks ...
|
|
|
|