Search the web
Sign In
New User? Sign Up
Hermes-Server · Hermes EMail Server
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Can't Open Console   Message List  
Reply | Forward Message #588 of 604 |
Re: Can't Open Console

Though I should post a fix for this in case no one else had

The bug is in
UtilU1.pas
lines 484-487

It is trying to fill DNSList from a comma or space separated list of
ips, but if the delimiter is a space, it never reduces the source
list, so it continually adds to DNSList



procedure FetchDNSList(DNSList : TStringList);
var
Reg : TRegistry;
tempStr : String;
begin
if Assigned(DNSList) then begin
DNSList.Clear;

Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;

if
Reg.OpenKey('System\CurrentControlSet\Services\Tcpip\Parameters',
False) then begin

// Read Static Name Servers...
tempStr := Reg.ReadString('NameServer');
if tempStr <> '' then begin
// ************** Bug starts here

while (Pos(',', tempStr) <> 0) or (Pos(' ', tempStr) <> 0) do
begin
DNSList.Add(Trim( Copy(tempStr, 1, Pos(',', tempStr)-1) ));
tempStr := Copy(tempStr, Pos(',', tempStr)+1, Length(tempStr) );
end;
// ************** Bug ends here
DNSList.Add( tempStr );
end;

// Read DHCP Name Servers...
tempStr := Reg.ReadString('DHCPNameServer');
if tempStr <> '' then begin
while Pos(' ', tempStr) <> 0 do begin
DNSList.Add(Trim( Copy(tempStr, 1, Pos(' ', tempStr)-1) ));
tempStr := Copy(tempStr, Pos(' ', tempStr)+1, Length(tempStr) );
end;
DNSList.Add( tempStr );
end;
end;
Reg.Free;
end;
end;


1 solution is to replace the function with the following :-

tempStr := Reg.ReadString('DHCPNameServer');
if tempStr <> '' then begin
while Pos(' ', tempStr) <> 0 do begin

with

tempStr := StringReplace(Reg.ReadString('NameServer'), ' ', ',',
[rfReplaceAll]);
if tempStr <> '' then begin
while (Pos(',', tempStr) <> 0) do begin



Regards, Loki



--- In Hermes-Server@yahoogroups.com, "David" <lokiwashere@...> wrote:
>
> FWIF, it sounds like the same thing is happening for me also
> Downloaded the service, never installed previously
> installed it and ticked "yes" to launch program now
> splash screen hung for ages
> so i killed it, uninstalled it,
> and tried downloading the application version thinking (maybe it's
> just coz im using nt4)
> APplication hung as well.. this time i left it, the mem usage went up
> over 70 meg, and kept going
> I left it longer and eventually I got an "Out of memory" error
> However.... Hermes was completely usable after this and I was happily
> able to set up a user and test things
>
> NT4, 128 meg ram, 250 meg free on drive
>
> hth, Loki
>
> > > Well I have observed some new behavior. I fired up the console
> > > and in a hurry I left it running with just the splash screen showing
> > > like before. I came back a couple hours later and It was showing
> an "out
> > > of memory" error. Click ok and I am at a working console. So it
seems
> > > its not really hung just busy. I'm not sure how long it takes to
> run out
> > > of memory. Could be anywhere from a few minutes to a few hours.
> I'll see
> > > if I can't scrape up some more accurate data. This is getting
> > > interesting. If I had more free time I'd be tempted to install
> Delphi on
> > > that box and step through the code. Oh, and we can rule out DNS
> trouble
> > > since that is all fixed now. Nothing like a good puzzle eh?
>










Wed May 3, 2006 12:13 am

lokisemail
Offline Offline
Send Email Send Email

Forward
Message #588 of 604 |
Expand Messages Author Sort by Date

I am running the latest version of Hermes (02/07/2003) on an NT 4 Server , and all is well except I can't run the console. The server is moving mail about like...
William Leader
scengineer
Offline Send Email
Apr 8, 2003
7:56 pm

Will, The console is a separate application that communicates with the Hermes service via UDP and Windows Messages... so manipulating the service won't help....
afanti @ comcast
afanti6207
Offline Send Email
Apr 9, 2003
1:07 pm

Alex, I have a theory, but I would need to look at the code to answer it, or I can ask you any you'll probably know off the top of your head..... Now, the...
William Leader
scengineer
Offline Send Email
Apr 9, 2003
8:24 pm

William, Actually, the Console and Service communicate through both UDP and Windows Service Control Manager... the SCM is the only thing the Console uses to...
afanti @ comcast
afanti6207
Offline Send Email
Apr 14, 2003
3:35 pm

Alex Well I have observed some new behavior. I fired up the console and in a hurry I left it running with just the splash screen showing like before. I came...
William Leader
scengineer
Offline Send Email
Apr 16, 2003
3:12 am

Ok, Been along time since I have had time to look at this, but here is some new information. I tried setting up a second box with as close to the same setup as...
William Leader
scengineer
Offline Send Email
Jul 28, 2003
10:32 pm

Alex, I found out why things won't open for me anymore. If you look at the code below. The key parts are the condition for the while. It loops as long as there...
William Leader
scengineer
Offline Send Email
Jul 29, 2003
2:38 pm

William, How about this... send me an email address where I can send a couple of megs worth of attachments, and I'll send you a new version fixing the bug...
afanti @ comcast
afanti6207
Offline Send Email
Jul 29, 2003
7:17 pm

FWIF, it sounds like the same thing is happening for me also Downloaded the service, never installed previously installed it and ticked "yes" to launch program...
David
lokiwashere
Offline Send Email
Aug 26, 2005
12:16 pm

Wow, did this message get lost in the ether for a really long time or what? the origional thread started and was solved 2 years ago. See: ...
William Leader
scengineer
Offline Send Email
Aug 27, 2005
7:33 am

hmm.. if it were solved, then why does it still happen with the latest download?...
David
lokiwashere
Offline Send Email
Aug 29, 2005
11:43 am

Though I should post a fix for this in case no one else had The bug is in UtilU1.pas lines 484-487 It is trying to fill DNSList from a comma or space separated...
David
lokisemail
Offline Send Email
May 3, 2006
12:18 am

Loki, Oddly enough this thread goes all the way back to April of 2003 See: (http://groups.yahoo.com/group/Hermes-Server/message/396). Eventually I found the...
William Leader
scengineer
Offline Send Email
May 4, 2006
9:50 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help