Board index » delphi » INDY & Multi-Processor

INDY & Multi-Processor


2004-02-18 01:07:16 PM
delphi229
Did INDY VCLs can work in multiple processor system?
I make a simple test program with a TIdSMTPServer and a button in
main form, click the button can start or stop the TIdSMTPServer, but
in multiple processor system, when I click the button to start the
server, the program close automatically without any error message.
I also make this test program work as system service with "automatic"
start type, but it can't start when system reboot.
Please help me in this issue. Thanks
David
 
 

Re:INDY & Multi-Processor

"David" <XXXX@XXXXX.COM>wrote in news:4032f1e8
@newsgroups.borland.com:
Quote
Did INDY VCLs can work in multiple processor system?
Yes.
Quote
I make a simple test program with a TIdSMTPServer and a button in
main form, click the button can start or stop the TIdSMTPServer, but
in multiple processor system, when I click the button to start the
server, the program close automatically without any error message.
And does your program work on a single CPU system? Are you sure your code is
ok?
Test one of the demos here and see if it runs ok:
www.atozed.com/indy/
Need extra help with an Indy problem?
www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

Yes, my program can work fine in single CPU system. I can send the program
to you, can you help me test it?
Thank you very much!
David
"Chad Z. Hower aka Kudzu" <XXXX@XXXXX.COM>writes
Quote
"David" <XXXX@XXXXX.COM>wrote in news:4032f1e8
@newsgroups.borland.com:
>Did INDY VCLs can work in multiple processor system?

Yes.

>I make a simple test program with a TIdSMTPServer and a button in
>main form, click the button can start or stop the TIdSMTPServer, but
>in multiple processor system, when I click the button to start the
>server, the program close automatically without any error message.

And does your program work on a single CPU system? Are you sure your code
is
ok?

Test one of the demos here and see if it runs ok:
www.atozed.com/indy/


--
Chad Z. Hower (a.k.a. Kudzu) - www.hower.org/Kudzu/
"Programming is an art form that fights back"

Need extra help with an Indy problem?

www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

"David" <XXXX@XXXXX.COM>wrote in news:40346764
@newsgroups.borland.com:
Quote
Yes, my program can work fine in single CPU system. I can send the program
to you, can you help me test it?
Do the demos I pointed you at work on your multi CPU system?
Need extra help with an Indy problem?
www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

No. If you want, I send it to you.
Thanks
David
"Chad Z. Hower aka Kudzu" <XXXX@XXXXX.COM>writes
Quote
"David" <XXXX@XXXXX.COM>wrote in news:40346764
@newsgroups.borland.com:
>Yes, my program can work fine in single CPU system. I can send the
program
>to you, can you help me test it?

Do the demos I pointed you at work on your multi CPU system?


--
Chad Z. Hower (a.k.a. Kudzu) - www.hower.org/Kudzu/
"Programming is an art form that fights back"

Need extra help with an Indy problem?

www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

David writes:
Quote
No. If you want, I send it to you.

Thanks

David

"Chad Z. Hower aka Kudzu" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...
>"David" <XXXX@XXXXX.COM>wrote in news:40346764
>@newsgroups.borland.com:
>>Yes, my program can work fine in single CPU system. I can send the
program
>>to you, can you help me test it?
>
>Do the demos I pointed you at work on your multi CPU system?
>
>
>--
>Chad Z. Hower (a.k.a. Kudzu) - www.hower.org/Kudzu/
>"Programming is an art form that fights back"
>
>Need extra help with an Indy problem?
>
>www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

some of the demos aren't thread safe.
The core indy code is thread safe. I routinely
hammer it on mutlithreaded machines.
the problem is in your code, unless you are using
D4, in which case the problem is in the compiler
Grahame
David writes:
Quote
No. If you want, I send it to you.

Thanks

David

"Chad Z. Hower aka Kudzu" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...
>"David" <XXXX@XXXXX.COM>wrote in news:40346764
>@newsgroups.borland.com:
>>Yes, my program can work fine in single CPU system. I can send the
program
>>to you, can you help me test it?
>
>Do the demos I pointed you at work on your multi CPU system?
>
>
>--
>Chad Z. Hower (a.k.a. Kudzu) - www.hower.org/Kudzu/
>"Programming is an art form that fights back"
>
>Need extra help with an Indy problem?
>
>www.atozed.com/indy/experts/
 

Re:INDY & Multi-Processor

Hi,
"Grahame Grieve" <XXXX@XXXXX.COM>writes
Quote
the problem is in your code, unless you are using
D4, in which case the problem is in the compiler
Would you care to elaborate on the above statement -- what about the D4
compiler is broken?
Cheers,
Damien
 

Re:INDY & Multi-Processor

"Damien Honeyford" <XXXX@XXXXX.COM>wrote in news:40350143
@newsgroups.borland.com:
Quote
>the problem is in your code, unless you are using
>D4, in which case the problem is in the compiler

Would you care to elaborate on the above statement -- what about the D4
compiler is broken?
Strings are not usable in thread for one. Its usually "ok" to run the rapids
- but on a multi CPU system....
There are some other issues IIRC. I think Delphi 6 was the first version that
finally fixed everything. Besides that - D4 was just a BAD version.
Qualified help FAST with Indy Experts Support
from the experts themselves:
www.atozed.com/indy/experts/support.iwp
 

Re:INDY & Multi-Processor

Damien Honeyford writes:
Quote
Hi,

"Grahame Grieve" <XXXX@XXXXX.COM>writes
news:XXXX@XXXXX.COM...

>the problem is in your code, unless you are using
>D4, in which case the problem is in the compiler

Would you care to elaborate on the above statement -- what about the
D4 compiler is broken?

String reference counting is not thread safe. Almost impossible
to demonstrate on a single CPU system, but does happen occasionally
on a multi CPU system - access violations reading strings (also true
for D2 and D3)
I've never seen any problem with D5, and I have thrashed it for SMP work
Grahame