Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Console Server
#1
I've begun converting my server to a console server. I have a few questions for the advanced visual basic users though.

1. Will keeping the old server form and all the crap on it, but not showing it still reduce the memory used by the server, or just have the same result as before?

2. Will using a menu (As shown below) make that much difference in memory usage compared to just typing commands instead?

The window is completely sizable, and the textboxes will resize automatically to whatever size the form is.
[Image: conserver2.jpg]
Reply
#2
1. It will not have to draw it, so that is very slightly less CPU usage (very, very slightly). Also, it doesn't have to store the image of it if there is one (ie an AutoRedraw image) so there is some more very slight less RAM usage. We're talking hardly noteable though, I believe.

2. More memory usage, most likely, but again, hardly anything.
Reply
#3
remove the form, go real.
http://vb.mvps.org/samples/project.asp?id=console

that window you made accomplishes nothing really.
Reply
#4
Or go completely form-less. Remove all the controls, use Winsock API and Do/Loop for the system, and run it as a process and use a remote control to handle everything.

teh uber 1337 8)
Reply
#5
grimsk8ter11 Wrote:remove the form, go real.
http://vb.mvps.org/samples/project.asp?id=console

that window you made accomplishes nothing really.
Thanks, I'll use that.
Reply
#6
Thanks Grim.
Reply
#7
No problem, I used it before, making an emulated console does nothing since the form uses the same amount of memory it always does, and the textbozes to.

Use this with IOCP and remove controls entirely, they are what are what make the form so inefficient.
Reply
#8
to be honest i'm just after something different.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)