|
Thanks Alan,
1.
Could I simply understand your optimization rule to be,
- keep less confliction;
- while at the same time try to reduce memory footprint?
Does it correct understanding?
2.
In my scenario, I should set the capacity parameter of constructor of Dictionary as much as possible?
regards,
George
|
|
|
|
|
Yes. Since everything is in memory, some collisions are ok. You should probably experiment with different capacities to see which gives the best performance.
|
|
|
|
|
In regards to point 3, A Windows process can only address 2gig of memory (well, 3 if you turn on a certain kernal level flag, but that causes as many problems as it solves) - Fundementally every Windows application is treated like it has 2 gigabytes of memory all to itself - the OS just handles which parts of each app's memory space exists in physical memory at any moment.
|
|
|
|
|
hi friend i am newbie in Mobile Development.
can any body tell me how i can connect with MySQl database on server through my PDA using C# and get some record from it how i can do this.
i had not get any simple help form net plz help me or give some really good refrence
wasim khan
|
|
|
|
|
You need the MySQL connector. Google is your friend.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Originally posted here[^] yesterday
|
|
|
|
|
THANX FOR UR Informative Replay did u see any help regarding to my Question there. if u did not know any answere then please do not make ur self to more efficient
wasim khan
|
|
|
|
|
It may very well be that the forum-members cannot answer a question. That doesn't mean that the question should be repeated until infinity.
If your problem remains unresolved, don't just repeat the previous question. Do some research, reformulate the question, and post that a few days later. Your chances of getting a valuable response will increase
|
|
|
|
|
wasimsharp wrote: THANX FOR UR Informative Replay
I posted a reply not for you but for the community.
wasimsharp wrote: if u did not know any answere then please do not make ur self to more efficient
I knew the answer long before you asked the question. Even if had not known it, I would still have posted to warn the community. You were given exactly the same answer yesterday.
|
|
|
|
|
How to get syntactically correct signature which compiles for code template grneration ?
I tried code below but it creates syntactically incorrect signature.
using System;
using System.Collections.Generic;
public class MainClass
{
static string GetSignature(Type xTheType, string method)
{
var xModule = xTheType.Module;
var xTheMethod = xTheType.GetMethod(method);
return xTheMethod.ToString();
}
public static void Main()
{
Console.WriteLine(GetSignature(typeof(MainClass), "Test"));
}
public void Test(object p1, List<string> p2)
{
}
}
Andrus
|
|
|
|
|
Hi everyone, I am trying desperately to figure out how to get the sync framework file sync to communicate over http. I gather I am going to have to send the information over webservices but am finding it hard to know where to start. I have it working over unc fine. I am using CTP2 as well, I tried looking into http://blogs.sqlxml.org/bryantlikes/archive/2008/01/03/remote-file-sync-using-wcf-and-msf.aspx[^] as well but that didnt seem to compile properly and am gathering it is using an old release. Can anyone point me in the right direction?
Cheers,
Johnboy
|
|
|
|
|
Is any function in C# equivalent to GetTextExtend in C++
-kk.tvm-
|
|
|
|
|
|
thank you very much
-kk.tvm-
|
|
|
|
|
You are welcome
|
|
|
|
|
If you'd like to see an example in code, I wrote an article about putting text on a bitmap that uses MeasureString (as recommended by Giorgi).
http://www.codeproject.com/KB/graphics/TextOnABitmap.aspx[^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hello everyone,
1.
I am not 100% and just want to confirm, every exception thrown from Web Services server side must be derived from SOAPException, and from client side, every exception caught are derived SOAPException?
2.
The reason why I ask this is I am confused about Web Services exception handling mechanism, I am not sure for client side code, we need to handle other kinds of exception, like IO or network related exception?
regards,
George
|
|
|
|
|
Sorry, a question for you george are you from Microsoft?
Every one among us was a beginner once
|
|
|
|
|
Hi all,
In my case..there is a server and client..
assume PC-A as server,PC-B as client.
Printer is physically connected to PC-A server,which is now can be called as Print Server(i.e.,PC-A).
The problem is as below..
Here the user is at PC-B(client machine),then he opens a normal word document(not through my application) and gives the normal file print...Then Immediately i have to invoke my c#.net windows application which is used for some accounting purpose.
To my knowledge I thought to write a service to watch/catch the spool file generation at client PC-B(client machine) machine and then it should invoke the windows application..But actually the spool file is generated at Server end but at client end...
Kindly guide me to resolve this issue..
|
|
|
|
|
hi,
I have made an application in that i am copying content of a folder to another folder in that i want to show my own progress dialog windows like that of windows,in that i have to show remaining time of copy process,,so how
will i calculate the remaining time of popy process.
thank you
|
|
|
|
|
Wow you asked the same question in the same forum in about 90 minutes.
|
|
|
|
|
have you see may reply before?
has it helps?
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
You're copying files? It's not that hard to implement in your own application.
Before you start copying, put the current time in a variable. (DateTime startCopy = DateTime.Now) Next, you're gonna copy a list of files. Once you have copied the first file, get the current time.
Get the timespan between those two timings. At this point you want to know how long it took to copy a single file. You also know how much files you're going to copy, right?
Next thing you do, is check out how many files still need to be copied. (How many items are remaining in the list?) Multiply by the time that it took to copy a single file - and there you have your "Remaining time:"
The displayed time will be a rough indication. It might be more accurate if you count the bytes copied
Hope this helps,
|
|
|
|
|
HI Guys,
I need to convert all *.cs files in one solution to html format. The exe will convert all code to html format.
Is there any third party tool which can do the same.
thx in advance.
Thanks,
Chintan(India)
|
|
|
|