Results 1 to 12 of 12

Thread: BIG Memeory Problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Question

    Lads and lasses,

    I have a VB6 SP3 app which uses IE5 compatible web browser control to display HTML GUI screens from a compiled html file.

    The problem being that the app itself grabs 16MB of memory and a whoppping 96MB of pagefile when I load it up (before I even do anything else like load a database ) (Giving a Priavte Bytes in the region of 100MB).

    The 16MB I can almost forgive (the app loads lots of dlls, but nothing outrageous) - but 100MB of pagefile? Anyone experienced this? Know how to 'fix' it?

    (The actual app is only 332KB - add in VB6 runtimes, comdlg, comctl and the browser etc. I can see how that could get me to 16MB pretty quick)

    Help!



    Dan

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    I've never run into that problem.

    You could try:
    1: FDisk'ing your Hard disk, or
    2: Being a little more specific about what you're program does and whether it loads the 100mb when the app starts or at a certain time




    Cheers



    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Talking OK, more depth...

    The VB part is a generic GUI to display other, HTML, 'GUIs' for particaular models of process euipment (heat exchangers, pumps etc) (whatever... its not for web browsing, its for displaying html files, and utilising javascript / vb script).

    Model configurations are stored in OLE Structured Storage databases.

    The 100MB is grabbed when you start the 'shell' GUI, before you've loaded any configuration database. At this point, it just displays a 'No model loaded' html file which is stored in a resource file.

    All that's happened so far is the program has retrevied its settings from registry, determined that it wasn't started from a command line, loaded the main form, navigated to the 'no model loaded' file, and displayed the main form.

    The problem we're having is that, as far as we can tell, its done nothing that might conceivably require 100MB of storage space (it hasn't setup any arrays or anything like that).

    Clear as mud?



    Dan

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Can you give me a list of controls you're using, I want to stick the same combination on a form and do some tests.

    Cheers
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Arrow Controls...

    We have:

    1 x main form form VB application wizard containing:

    5 x menu items

    1 x toolbar (9 buttons)

    1 x statusbar (3 panels)

    1 x imagelist

    1 x picturebox

    1 x common dialog

    1 x web browser from shdocvw.dll v. 5.00.2314

    Where applicable, its the (6.0 SP3) version thats been used

  6. #6
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    That's actually my first time using the wizard. Looks like there is some good code for a splitter bar there!

    But I compiled it, ran it and even had the web page pointed to msn.com to increase the memory count but mem usage in the NT task manager (I'm using win2k pro) stayed just over 10meg

    What's in the html page you're loading?
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Unhappy Nothing :)

    Absolutely nothing other than three lines of centered text which say something to the effect:

    'app name'

    'you haven't loaded a model'

    'go to help to get started'

    your mem usage is 10Mb is task manager - what about your virtual memory and private bytes?



    Dan

  8. #8
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    I'll have to let you know when I get home. My system here at work is over it's limit before I even start .

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    More info...

    Paul,

    I don't know if you got anything out of this, but if you need some more info the references for my project are:

    Visual Basic for Applications (D'Oh! )
    Visual Basic runtime objects and procedures
    Visual BAsic objects and procedures
    OLE Automation
    Microsoft Internet Controls
    Microsoft Scripting Runtime
    Microsoft HTML Object Library
    Microsoft Excel 8.0 Object Library
    MDC DBManager Class v2 (this one's ours )
    Microsoft XML, version 2.0

    Regards,

    Dan



  10. #10
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    That'll push it up a bit.

    I'm still struggling with 100mb, You mean 100MB just for this app (not total VM ??)

    just re checking 'cause it sounds odd
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Unhappy Yep just this app..

    generally it has 96 - 98 MB of VM on its own, though it doesn't seem to do any outrageous disk accessing..

    I just don't know whats going on..

    Dan

  12. #12
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Question

    can you compile it and send it to me? I understand if you can't send me the source but if you can make a setup with just the home made ocx's etc (obviously don't need the runtimes) and I'll tell you what happens on my system

    ???
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width