|
-
May 21st, 2000, 06:14 PM
#1
Thread Starter
Hyperactive Member
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
-
May 21st, 2000, 07:05 PM
#2
Fanatic Member
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!)
-
May 21st, 2000, 07:22 PM
#3
Thread Starter
Hyperactive Member
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
-
May 22nd, 2000, 07:18 AM
#4
Fanatic Member
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!)
-
May 22nd, 2000, 03:42 PM
#5
Thread Starter
Hyperactive Member
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
-
May 22nd, 2000, 07:04 PM
#6
Fanatic Member
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!)
-
May 22nd, 2000, 07:16 PM
#7
Thread Starter
Hyperactive Member
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
-
May 23rd, 2000, 07:12 AM
#8
Fanatic Member
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!)
-
May 25th, 2000, 03:09 PM
#9
Thread Starter
Hyperactive Member
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
-
May 25th, 2000, 03:19 PM
#10
Fanatic Member
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!)
-
May 25th, 2000, 03:32 PM
#11
Thread Starter
Hyperactive Member
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
-
May 25th, 2000, 03:43 PM
#12
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|