Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 4:39
professionalEddy Vluggen29-Jul-16 4:39 
GeneralRe: convert Ms access project to c# Pin
dabbourabd29-Jul-16 10:58
dabbourabd29-Jul-16 10:58 
GeneralRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 14:26
professionalEddy Vluggen29-Jul-16 14:26 
Questionc#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 20:11
User 1106097928-Jul-16 20:11 
AnswerRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
OriginalGriff28-Jul-16 21:38
mveOriginalGriff28-Jul-16 21:38 
GeneralRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 21:51
User 1106097928-Jul-16 21:51 
QuestionWMF to Base64String Pin
sunsher28-Jul-16 19:11
sunsher28-Jul-16 19:11 
AnswerRe: WMF to Base64String Pin
OriginalGriff28-Jul-16 19:39
mveOriginalGriff28-Jul-16 19:39 
GeneralRe: WMF to Base64String Pin
sunsher28-Jul-16 20:47
sunsher28-Jul-16 20:47 
GeneralRe: WMF to Base64String Pin
OriginalGriff28-Jul-16 21:30
mveOriginalGriff28-Jul-16 21:30 
GeneralRe: WMF to Base64String Pin
sunsher31-Jul-16 20:38
sunsher31-Jul-16 20:38 
GeneralRe: WMF to Base64String Pin
OriginalGriff31-Jul-16 20:50
mveOriginalGriff31-Jul-16 20:50 
GeneralRe: WMF to Base64String Pin
sunsher1-Aug-16 21:09
sunsher1-Aug-16 21:09 
QuestionRead JSON in C# Pin
Jassim Rahma28-Jul-16 7:24
Jassim Rahma28-Jul-16 7:24 
AnswerRe: Read JSON in C# Pin
Richard Deeming28-Jul-16 7:57
mveRichard Deeming28-Jul-16 7:57 
AnswerRe: Read JSON in C# Pin
Ravi Bhavnani28-Jul-16 11:14
professionalRavi Bhavnani28-Jul-16 11:14 
GeneralRe: Read JSON in C# Pin
Richard Deeming29-Jul-16 1:53
mveRichard Deeming29-Jul-16 1:53 
AnswerRe: Read JSON in C# Pin
Bernhard Hiller31-Jul-16 22:30
Bernhard Hiller31-Jul-16 22:30 
QuestionSend hindi sms from computer to mobile Pin
Member 1055429727-Jul-16 20:41
Member 1055429727-Jul-16 20:41 
GeneralRe: Send hindi sms from computer to mobile Pin
User 1106097927-Jul-16 20:54
User 1106097927-Jul-16 20:54 
AnswerRe: Send hindi sms from computer to mobile Pin
Daniel Pfeffer27-Jul-16 21:02
professionalDaniel Pfeffer27-Jul-16 21:02 
QuestionExclusive Code Execution, determine Memory Consumption of a Class Pin
User 1106097927-Jul-16 19:55
User 1106097927-Jul-16 19:55 
Is there a way to accomplish that a sequence of code does run exclusively, I mean no Task scheduling allowed while executing the sequence?

The reason behind it is, I try to determine the memory usage of a class this way:
C#
private void MemoryTest()
{
    const int cTestObjCount= 10000;

    // Start No Task Scheduling
    long before= GC.GetTotalMemory(false);
    string[] stringArray= new string[cTestObjCount];
    long after= GC.GetTotalMemory(false);
    // End No Task Scheduling
}

Or does somebody knows a better method how to determine the memory consumption of a class (without the help of a profiler)?
Thank you in advance.

modified 19-Jan-21 21:04pm.

AnswerRe: Exclusive Code Execution, determine Memory Consumption of a Class Pin
Pete O'Hanlon27-Jul-16 23:20
mvePete O'Hanlon27-Jul-16 23:20 
GeneralRe: Exclusive Code Execution, determine Memory Consumption of a Class Pin
User 1106097927-Jul-16 23:23
User 1106097927-Jul-16 23:23 
AnswerRe: Exclusive Code Execution, determine Memory Consumption of a Class Pin
Richard Deeming28-Jul-16 1:41
mveRichard Deeming28-Jul-16 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.