Fetstil Fetstil Kursiv Understrykning linje färgläggning tabellverk Punktlista Nummerlista Vänster Centrerat högerställt Utfyllt Länk Bild htmlmode
  • Forum & Blog
    • Forum - översikt
      • .Net
        • asp.net generellt
        • c#
        • vb.net
        • f#
        • silverlight
        • microsoft surface
        • visual studio .net
      • databaser
        • sql-server
        • databaser
        • access
        • mysql
      • mjukvara klient
        • datorer och komponenter
        • nätverk, lan/wan
        • operativsystem
        • programvaror
        • säkerhet, inställningar
        • windows server
        • allmänt
        • crystal reports
        • exchange/outlook
        • microsoft office
      • mjukvara server
        • active directory
        • biztalk
        • exchange
        • linux
        • sharepoint
        • webbservers
        • sql server
      • appar (win/mobil)
      • programspråk
        • c++
        • delphi
        • java
        • quick basic
        • visual basic
      • scripting
        • asp 3.0
        • flash actionscript
        • html css
        • javascript
        • php
        • regular expresssion
        • xml
      • spel och grafik
        • DirectX
        • Spel och grafik
      • ledning
        • Arkitektur
        • Systemutveckling
        • krav och test
        • projektledning
        • ledningsfrågor
      • vb-sektioner
        • activeX
        • windows api
        • elektronik
        • internet
        • komponenter
        • nätverk
        • operativsystem
      • övriga forum
        • arbete karriär
        • erbjuda uppdrag och tjänster
        • juridiska frågor
        • köp och sälj
        • matematik och fysik
        • intern information
        • skrivklåda
        • webb-operatörer
    • Posta inlägg i forumet
    • Chatta med andra
  • Konto
    • Medlemssida
    • Byta lösenord
    • Bli bonsumedlem
    • iMail
  • Material
    • Tips & tricks
    • Artiklar
    • Programarkiv
  • JOBB
  • Student
    • Studentlicenser
  • KONTAKT
    • Om pellesoft
    • Grundare
    • Kontakta oss
    • Annonsering
    • Partners
    • Felanmälan
  • Logga in

Hem / Forum översikt / inlägg

Posta nytt inlägg


Windows App ( light weight process reporting to GUI)

Postades av 2004-02-16 14:34:21 - paul horsley, i forum vb.net, Tråden har 3 Kommentarer och lästs av 722 personer

What control is best to use when reporting events to a windows form, I have an application in VB.Net that generates about 5000/6000 events per hr, these events are logged to an sql server, But I wanted to have the last 100 or so events listed in a listbox or whatever just so a user could see what's going on, only thing is when I do this I can see the memeory go up and up...I used a listbox control, and check items.count when >100 I clear list box and write new events. Any ideas how to be able to report such amounts of data ( strings ) to a GUI with out exesive memory usage.

question is also when I clear the list items are they really dumped or do I have to explcitly call the GC object?

regards in advance Paul


Svara

Sv: Windows App ( light weight process reporting to GUI)

Postades av 2004-02-16 15:51:30 - Markus Jarderot

I don't think this will anwer your question...
but i thought that instead of clearing the listbox you could just remove the oldest element (Index = 0) and add the new one at the end of the list (assuming you don't have a sorted list), instead of clearing the list once a minute.


Svara

Sv: Windows App ( light weight process reporting to GUI)

Postades av 2004-02-18 08:53:50 - Roger Alsing

You should not use taskman.exe to check how much mem a .net app uses ,
use a .net mem profiler like the one from swedish scitech http://www.scitech.se/

when you clear your listbox the objects are marked as dead , but this doesnt mean they are instantly removed. this will be done when the GC thinks it needs the memory for something else.

//Roger


Svara

Sv: Windows App ( light weight process reporting to GUI)

Postades av 2004-02-20 06:09:48 - paul horsley

Thanx for info Roger,


Svara

Nyligen

  • 19:55 kick-off med fokus på hälsa?
  • 19:53 kick-off med fokus på hälsa?
  • 16:24 Föreslå en skönhetsklinik online
  • 16:23 Föreslå en skönhetsklinik online
  • 18:42 Hvor finder man håndlavede lamper
  • 18:41 Hvor finder man håndlavede lamper
  • 16:36 Allt du behöver veta om keramiskt
  • 16:14 Vem anlitar man egentligen när tak

Sidor

  • Hem
  • Bli bonusmedlem
  • Läs artiklar
  • Chatta med andra
  • Sök och erbjud jobb
  • Kontakta oss
  • Studentlicenser
  • Skriv en artikel

Statistik

Antal besökare:
Antal medlemmar:
Antal inlägg:
Online:
På chatten:
4 570 721
27 958
271 751
5 785
0

Kontakta oss

Frågor runt konsultation, rådgivning, uppdrag, rekrytering, annonsering och övriga ärenden. Ring: 0730-88 22 24 | pelle@pellesoft.se

© 1986-2013 PelleSoft AB. Last Build 4.1.7169.18070 (2019-08-18 10:02:21) 4.0.30319.42000
  • Om
  • Kontakta
  • Regler
  • Cookies