Baesyan filter - WORKING test pre-release

2003-03-29 Thread Alexey N. Vinogradov
Hello, Mark. 
You wrote in mid:[EMAIL PROTECTED]

MW Alexey-

MW What kind of error are you getting? Is your plugin not showing up in
MW the list of available plugins or are you getting an error on selecting
MW it? I'm assuming that use dynamic RTL is unchecked in the Linker
MW settings. I think that's the only setting I changed on my setup except
MW to make sure the Target file extension is set to tbp.

MW -Mark Wieder

MW  Using The Bat! v1.63 Beta/7 on Windows 2000 5.0 Build 2195 Service Pack 2

I have already localized this problem. It was the subsequence of
so-called name decoration. With one option it generate one names,
with other - others. The Bat! needs exactly named functions in TBP -
like TBP_GetSpamScore but not __TBP_GetSpamScore as it generated
according to C-decoration.

First, I recompiled all plugin in MS Visual C++ V6 SP4. It was the
simplest task because the plugin written in ANSI C++. Then I
investigated MSDN on name decoration. And finally added .def file with
exact names:

LIBRARY vsbaesyan
EXPORTS
TBP_Initialize  @1
TBP_NeedConfig  @2
TBP_GetName @3
TBP_GetVersion  @4
TBP_GetStatus   @5
TBP_GetSpamScore@6
TBP_Setup   @7
TBP_Finalize@8
TBP_NeedCOM @9


Now all is working. By using MS Visual Studio I also solved the
problem with run-time libraries at all. Compiled version includes all
what necessary. And this library takes only 274kb versus 854kb when I
compiled it by C++ Builder. After compressing with ASPack it became
131kb - only 3kb more than previous one WITHOUT runtimes.

Previous version (which needs libraries) still exist at
http://klirik.narod.ru/arc/baesyan.tbp (125kb)

NEW tester's build is avaliable at
http://klirik.narod.ru/arc/vsbaesyan.tbp (128kb)

This last one I ask you (and everybody who reads this posting)
to test.

All necessary information about what is necessary I described in
mid:[EMAIL PROTECTED]


-- 
Sincerely,
 Alexey.
Using TB 1.63b7 on WinXP SP1 Corp + MUI RU, spelling by ORFO2002
   mailto:[EMAIL PROTECTED]



Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Baesyan filter - WORKING test pre-release

2003-03-29 Thread Kjartan srsson
I tried using both versions of your plugin.

When I tried to install the first one (build using C++ builder) I got
error message telling me it couldnt find CC3260.DLL. I assume this DLL
comes with C++ Builder and is not statically linked to the plugin.

Anyhow. I tried the second version, which you compiled with VS. When i
load that one The Bat starts taking up more and more memory. I killed
it when it was consuming 400 MB in RAM (and still growing).

My regard.rbd file is around 1 MB in size. I built it using ~3000
spam mails and ~5000 real mails.

Any idea what may be wrong?

- kjartan



Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Baesyan filter - WORKING test pre-release

2003-03-29 Thread Mark Wieder
Alexey-

I originally had struggled with the name decoration problem, too. I
finally solved it by creating a new project, importing my source
files, and changing the RTL setting. I think the original project file
had gotten corrupted or was somehow keeping some decoration settings
that I couldn't change. After moving to a new project file everything
has been working.

I don't quite know why your DLL has gotten so large, though. I'm well
under 200k with no optimization.

-Mark Wieder

 Using The Bat! v1.63 Beta/7 on Windows 2000 5.0 Build 2195 Service Pack 2
-- 



Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Baesyan filter - WORKING test pre-release

2003-03-29 Thread Alexey N. Vinogradov
Hello, Kjartan. 
You wrote in mid:[EMAIL PROTECTED]

KÁ I tried using both versions of your plugin.

KÁ When I tried to install the first one (build using C++ builder) I got
KÁ error message telling me it couldnt find CC3260.DLL. I assume this DLL
KÁ comes with C++ Builder and is not statically linked to the plugin.

KÁ Anyhow. I tried the second version, which you compiled with VS. When i
KÁ load that one The Bat starts taking up more and more memory. I killed
KÁ it when it was consuming 400 MB in RAM (and still growing).

KÁ My regard.rbd file is around 1 MB in size. I built it using ~3000
KÁ spam mails and ~5000 real mails.

KÁ Any idea what may be wrong?

It's sounds strange... :(. But my mail corpus is more humble - I have
only 700 letters of spam and 1000 of non-spam. My regard.rbd contains
about 2 key tokens and takes around 400KB. I tried it on Windows
XP and Windows 98. In both cases all was o'key.

The first thing I think can be probed is to make smaller regard.rbd.
Can you make new rgd - with parameters like my own has - and try it
again? If all will be right then I will work on direction of memory
using. If all will go wrong I would like to have you regard.rbd to
touch it.

Second guess - may be it happens because of different locales. In this
case I will provide default options for it in release. Now plugin (and
regard base machine) depends (silently) also from the tables XLT which
I looked for in HKCU\Software\RIT\The Bat!\XLT.

Third, I also found one fantom error which arises from time to
time during mail checking. The error is that sometimes regarder method
in GetSpamScore does'nt be called or arise an error. I see in log that
all is right just to the moment of mail checking itself. Then in some
cases function is just stops and no regarding is returning.

Fourth - may be because of log-system itself. I use a simpliest way -
just create an instance of ostringstream at the TBInitialize and
append it to file in TBFinalize. If during work some eternal loop
arises (simple no guesses where it can be) it just fill the memory by
junk logs. In this case it can be good to turn log system off (just
for testing purposes).

To try last guess I maked a compilation without log system at all.
(And so it does not create or require c:\baesyan\baesyan.log at all).

Also I maked a compilation with very big log - it just logs all what
happens and it can help in locating of exact place where an error
occured. If you have a time, please, try them both.

http://klirik.narod.ru/arc/vsbaeslog.tbp (128kb)

http://klirik.narod.ru/arc/vsbaesnolog.tpb (126kb)

Also you can see the source for both compilation in attachment.


-- 
Sincerely,
 Alexey.
Using TB 1.63b7 on WinXP SP1 Corp + MUI RU, spelling by ORFO2002
   mailto:[EMAIL PROTECTED]

baesyan.cpp
Description: Binary data

Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Baesyan filter - WORKING test pre-release

2003-03-29 Thread Kjartan srsson
ANV http://klirik.narod.ru/arc/vsbaeslog.tbp (128kb)

ANV http://klirik.narod.ru/arc/vsbaesnolog.tpb (126kb)

Neither of these files are found when i try to download them, are you
sure the URLs are correct? Feel free to send them as an attachment in
the e-mail if you are having problem with your web site.

- kjarri





Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Baesyan filter - WORKING test pre-release

2003-03-29 Thread Alexey N. Vinogradov
Hello, Kjartan. 
You wrote in mid:[EMAIL PROTECTED]

ANV http://klirik.narod.ru/arc/vsbaeslog.tbp (128kb)

ANV http://klirik.narod.ru/arc/vsbaesnolog.tpb (126kb)

KÁ Neither of these files are found when i try to download them, are you
KÁ sure the URLs are correct? Feel free to send them as an attachment in
KÁ the e-mail if you are having problem with your web site.

KÁ - kjarri

Sorry... I just forgot to upload them immediately. :) All is corrected
now...

-- 
Sincerely,
 Alexey.
Using TB 1.63b7 on WinXP SP1 Corp + MUI RU, spelling by ORFO2002
   mailto:[EMAIL PROTECTED]



Current version is 1.62 | Using TBDEV information:
http://www.silverstones.com/thebat/TBUDLInfo.html