What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Memory Useage In VB

Memory Useage In VB
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Memory Useage In VB
quote:
Originally posted by DJeX
it adds 24 bytes ever time it udates. I can even see it when i go into the task manager and look at the programs mem useage.
first of all: The values of memory usage shown in the task manager doesn't represent the real memory used by the programs, so don't worry very much about it. Are you sure it adds 24 bytes every update and forever? or does it stop at some value?



Well, about the code, I don't see anything wrong, however you don't posted all the code (in fact, I'm more interested in all the declarations of those variables and functions). First of all: Are you sure you need the calls to copymemory? i don't know where those pTablePtr and pDataRef come from, however maybe you could use a direct assignment.

And second thing: Again this is a supposition (because i don't know the declaration of the variables). What about using VarPrt? I mean:
CopyMemory VarPrt(nState), ByVal pTablePtr + (pDataRef + 4), 4
CopyMemory VarPrt(nLocalAddr), ByVal pTablePtr + (pDataRef + 8), 4
etc...
Well, if the code works, I suppose it's fine as you wrote it. (Also, at the first CopyMemory call, is it "pDataRef + 4" or just pDataRef? (and similar for other calls))
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
08-29-2004 08:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Memory Useage In VB - by DJeX on 08-29-2004 at 07:17 AM
RE: Memory Useage In VB - by theRabbit83 on 08-29-2004 at 08:28 AM
RE: Memory Useage In VB - by DJeX on 08-29-2004 at 07:40 PM
RE: Memory Useage In VB - by Choli on 08-29-2004 at 08:58 PM
RE: Memory Useage In VB - by DJeX on 08-29-2004 at 09:04 PM
RE: Memory Useage In VB - by Choli on 08-29-2004 at 09:23 PM
RE: Memory Useage In VB - by DJeX on 08-29-2004 at 11:59 PM
RE: Memory Useage In VB - by Choli on 08-30-2004 at 09:23 PM
RE: Memory Useage In VB - by DJeX on 09-01-2004 at 05:17 AM
RE: Memory Useage In VB - by Choli on 09-01-2004 at 08:02 PM
RE: Memory Useage In VB - by DJeX on 09-02-2004 at 03:48 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On