-
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!
:cool:
Dan
-
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
:D
Cheers
-
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?
:cool:
Dan
-
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
-
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
-
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?
-
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?
:cool:
Dan
-
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 :(.
-
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! :p)
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 :p)
Microsoft XML, version 2.0
Regards,
Dan
-
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
-
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
-
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
???