Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to remain WPF Window always on top of all windows? Pin
Benjamin.Buhr25-Sep-15 0:08
Benjamin.Buhr25-Sep-15 0:08 
GeneralRe: How to remain WPF Window always on top of all windows? Pin
Benjamin.Buhr28-Sep-15 1:39
Benjamin.Buhr28-Sep-15 1:39 
GeneralRe: How to remain WPF Window always on top of all windows? Pin
Eddy Vluggen28-Sep-15 5:38
professionalEddy Vluggen28-Sep-15 5:38 
GeneralRe: How to remain WPF Window always on top of all windows? Pin
Benjamin.Buhr28-Sep-15 22:49
Benjamin.Buhr28-Sep-15 22:49 
QuestionRe: How to remain WPF Window always on top of all windows? Pin
Eddy Vluggen29-Sep-15 1:25
professionalEddy Vluggen29-Sep-15 1:25 
AnswerRe: How to remain WPF Window always on top of all windows? Pin
Benjamin.Buhr14-Oct-15 0:37
Benjamin.Buhr14-Oct-15 0:37 
GeneralRe: How to remain WPF Window always on top of all windows? Pin
Eddy Vluggen15-Oct-15 4:38
professionalEddy Vluggen15-Oct-15 4:38 
QuestionMemory leak deterioration in performance in working with weight in rs232 Win-CE Pin
goldsoft21-Sep-15 21:20
goldsoft21-Sep-15 21:20 
hi,

i have Windows-Mobile program that work with weight Connecting through rs232.

its work excellent - If the program works in a period of time, it starts to slow

down and even get stuck at some point.

my code:

Hide Expand Copy Code
port = new SerialPort("COM3", 9600, Parity.None, 8, StopBits.One);
port.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(Recepcion);

private SerialPort port;
StringBuilder SB;
private void Recepcion(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
try
{
SB = new StringBuilder(1000);
Application.DoEvents();
System.Threading.Thread.Sleep(122);
SB.Append(port.ReadExisting());
port.DiscardInBuffer();
this.Invoke(new EventHandler(Actualizar));
}
catch { }
}
string MOMO1, MOMO2;
string[] WI;
string ALL;
private void Actualizar(object s, EventArgs e)
{
    ALL = SB.ToString().Trim();
    WI = ALL.Split(',');
    ALL = WI[2].ToString().Trim();
    MOMO1 = ALL.Replace("+", "").Replace("g", "").Replace("ST", "").Replace("GS", "").Replace("US", "");
    if (MOMO1 != "")
    {
        MOMO2 = MOMO1;
    }
    lblMSG.Font = new Font("Ariel", 48, FontStyle.Bold);
    lblMSG.Text = MOMO2;
    Check_Weight();
    GC.Collect();  // <-- is it OK ?
}

Can anyone advise me why and how to solve it ?
AnswerRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
OriginalGriff21-Sep-15 21:40
mveOriginalGriff21-Sep-15 21:40 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
goldsoft21-Sep-15 23:04
goldsoft21-Sep-15 23:04 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
Pete O'Hanlon21-Sep-15 23:08
mvePete O'Hanlon21-Sep-15 23:08 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
OriginalGriff21-Sep-15 23:30
mveOriginalGriff21-Sep-15 23:30 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
goldsoft23-Sep-15 22:28
goldsoft23-Sep-15 22:28 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
OriginalGriff23-Sep-15 22:37
mveOriginalGriff23-Sep-15 22:37 
GeneralRe: Memory leak deterioration in performance in working with weight in rs232 Win-CE Pin
goldsoft24-Sep-15 0:49
goldsoft24-Sep-15 0:49 
QuestionI want to perform a similiar operation on 100 VMs open in my Remote Desktop Connection Manager; Can I Automate it? Pin
AshiSh RaNa21-Sep-15 19:35
AshiSh RaNa21-Sep-15 19:35 
AnswerRe: I want to perform a similiar operation on 100 VMs open in my Remote Desktop Connection Manager; Can I Automate it? Pin
Pete O'Hanlon21-Sep-15 21:06
mvePete O'Hanlon21-Sep-15 21:06 
GeneralRe: I want to perform a similiar operation on 100 VMs open in my Remote Desktop Connection Manager; Can I Automate it? Pin
AshiSh RaNa21-Sep-15 23:51
AshiSh RaNa21-Sep-15 23:51 
QuestionHow to get the user defined method Pin
vijay kumar20-Sep-15 23:27
vijay kumar20-Sep-15 23:27 
AnswerRe: How to get the user defined method Pin
Eddy Vluggen20-Sep-15 23:48
professionalEddy Vluggen20-Sep-15 23:48 
GeneralRe: How to get the user defined method Pin
OriginalGriff21-Sep-15 0:51
mveOriginalGriff21-Sep-15 0:51 
GeneralRe: How to get the user defined method Pin
vijay kumar21-Sep-15 20:33
vijay kumar21-Sep-15 20:33 
AnswerRe: How to get the user defined method PinPopular
BillWoodruff21-Sep-15 2:48
professionalBillWoodruff21-Sep-15 2:48 
GeneralRe: How to get the user defined method Pin
Eddy Vluggen21-Sep-15 5:22
professionalEddy Vluggen21-Sep-15 5:22 
GeneralRe: How to get the user defined method Pin
vijay kumar21-Sep-15 20:32
vijay kumar21-Sep-15 20:32 

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.