• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

VC++ Service Issue

Hi,

   I have developed a service in VC++. This service reads from some binary files and inserts into SQL database. While the service is running, I cannot execute Microsoft Query or launch a new office document. The task manager does not show significant CPU/Memory utilization for the process. This happens even when there is no binary data to insert into the SQL Server.

   Can anyone tell me any possible reasons why this is happening? Any help in this regards will be really appreciated. Thanks in advance.

Ashish
0
ashishjj
Asked:
ashishjj
  • 2
1 Solution
 
jhanceCommented:
>>I cannot execute Microsoft Query or launch a new office document

Why not?  What happens if you try?  Please be specific!
0
 
ashishjjAuthor Commented:
Hi,

   If I click on new office document while the service is running, Microsoft Word  window does not appear. If I stop the service now the New Word dcoument window will show up. Nor do I see the instance in the task manger. So the MS-Office application is not able to open a document till the service is running.

Ashish
0
 
codez80Commented:
it could be because the service does not allow interaction with desktop.

go to service setup (control panel in NT, admin tools in Win2K) and tick "Allow Interaction with Desktop" box.

codez80

0
 
ashishjjAuthor Commented:
Hi,

  The service had the "Allow Interaction with Desktop" already ON. Infact this was causing the problem. We turned it OFF and it started working. Thanks anyway for the clue.

Ashish
 
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now