Taskbar stops responding temporarily

Hello all -

I wrote an NT Service, and when I run it as such, SOMETIMES after it is
loaded, it causes the taskbar to stop responding, but just for about 10 or
20 seconds. I can click on stuff in the taskbar, but nothing happens.
Then, when the timeout period elapses, everything I clicked on comes to
life. If I hit alt-ctrl-del to get the task manager up, nothing is using
CPU. Looks like it’s waiting on a resource of some kind.

My service runs on win2k server or workstation, uses ODBC, TCP/IP, a little
COM, and C++. This problem has also been experienced on NT4/sp6, but I
really only support Win2k.

This problem doesn’t happen all the time, and it doesn’t EVER happen when I
DON’T run it as a service. It also seems to always occur when I click on
the Windows Explorer Icon I placed in the taskbar. Also, If I run Explorer
from the “run” menu item in the start menu, this problem does not occur.

Has anyone seen this behaviour before? Any clues and hints would be
greatly appreciated… :wink:

PS: The “sample” code I got to invoke the service came from Microsoft.
I should also mention that I am required to use the Borland CBuilder
compiler for this because of a legacy thing…

Thanks - Greg Pearce


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I should also mention that I am required to use the Borland CBuilder

compiler for this because of a legacy thing…

This tool uses a very non-standard runtime library which can do lots of extra stuff.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Huh? I’ve use CBuilder for all kinds of projects and I’ve never experienced
this or any similar problems. What do you mean by “non-standard” RTL.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Thursday, December 13, 2001 4:15 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Taskbar stops responding temporarily

I should also mention that I am required to use the Borland CBuilder
compiler for this because of a legacy thing…

This tool uses a very non-standard runtime library which can do lots of
extra stuff.

Max


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

For instance, they link to OLEAUT32.DLL even for simple command-line apps.

----- Original Message -----
From: “Jim Young”
To: “NT Developers Interest List”
Sent: Friday, December 14, 2001 4:29 AM
Subject: [ntdev] Re: Taskbar stops responding temporarily

> Huh? I’ve use CBuilder for all kinds of projects and I’ve never experienced
> this or any similar problems. What do you mean by “non-standard” RTL.
>
> Jim
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Thursday, December 13, 2001 4:15 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Taskbar stops responding temporarily
>
>
> > I should also mention that I am required to use the Borland CBuilder
> > compiler for this because of a legacy thing…
>
> This tool uses a very non-standard runtime library which can do lots of
> extra stuff.
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

At 11.31 14/12/2001 +0300, you wrote:

>Huh? I’ve use CBuilder for all kinds of projects and I’ve never
>experienced this or any similar problems. What do you mean by
>“non-standard” RTL.
For instance, they link to OLEAUT32.DLL even for simple command-line apps.

They need it, since the string and variant types of the Delphi/C++ Builder
need binary compatibility with those of OLE. Look at the imports normally
bound: they’re almost always OleVariant* and OleStr* ones. Delphi6/Kylix
should be different, AFAIK they created two new data types for OLE
compatibility, and OLE is no longer necessary (especially because there’s
no OLE on Linux, where Kylix runs)


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

IMHO the C compiler must have a standard runtime not bound to OLE or such.
C++ Builder looks more like a VB-style RAD then a real C++ implementation.

should be different, AFAIK they created two new data types for OLE
compatibility, and OLE is no longer necessary (especially because there’s
no OLE on Linux, where Kylix runs)

I would better see parts of OLE being ported to Linux as part of Kylix instead of re-implementing the same bicycle other way.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Sure, if you link in any references to VCL. You can write bare bones,
stripped to the metal, applications with BCB that uses none of that stuff.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Friday, December 14, 2001 12:32 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Taskbar stops responding temporarily

For instance, they link to OLEAUT32.DLL even for simple command-line apps.

----- Original Message -----
From: “Jim Young”
To: “NT Developers Interest List”
Sent: Friday, December 14, 2001 4:29 AM
Subject: [ntdev] Re: Taskbar stops responding temporarily

> Huh? I’ve use CBuilder for all kinds of projects and I’ve never
experienced
> this or any similar problems. What do you mean by “non-standard” RTL.
>
> Jim
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Thursday, December 13, 2001 4:15 PM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Taskbar stops responding temporarily
>
>
> > I should also mention that I am required to use the Borland CBuilder
> > compiler for this because of a legacy thing…
>
> This tool uses a very non-standard runtime library which can do lots of
> extra stuff.
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Sure, you can write applications using the RAD/VCL functionality. But, if
you want to write an application using straight Windows API that compiles
down to the bare minimum and no OLE, that’s no problem.

Jim

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Saturday, December 15, 2001 5:00 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Taskbar stops responding temporarily

IMHO the C compiler must have a standard runtime not bound to OLE or such.
C++ Builder looks more like a VB-style RAD then a real C++ implementation.

should be different, AFAIK they created two new data types for OLE
compatibility, and OLE is no longer necessary (especially because there’s
no OLE on Linux, where Kylix runs)

I would better see parts of OLE being ported to Linux as part of Kylix
instead of re-implementing the same bicycle other way.

Max


You are currently subscribed to ntdev as: xxxxx@youngendeavors.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com