Leo01
asked on
DLL Locked whn run as service.
Hi All,
I had a weird problem like I run my application as service(Automatic) on WIN2k,and when I reboot my m/e the application is running fine as service..automatically.
But for some reason..it's locking the DLL's that it is using....I cannot run any other application that share the same DLL'/s.it gives the error 0x0000142(which is ERROR_DRIVE_BUSY).
can somebody throw some light on the problem.
Thanks a million in advance.
Leo.
I had a weird problem like I run my application as service(Automatic) on WIN2k,and when I reboot my m/e the application is running fine as service..automatically.
But for some reason..it's locking the DLL's that it is using....I cannot run any other application that share the same DLL'/s.it gives the error 0x0000142(which is ERROR_DRIVE_BUSY).
can somebody throw some light on the problem.
Thanks a million in advance.
Leo.
0x0000142 is *NOT* 'ERROR_DRIVE_BUSY', which is '142' in decimal. Your error code is 322d, and there's no corresponding Win32 error code - where do you get it from?
Well, it's more likely to be
//
// MessageId: STATUS_DLL_INIT_FAILED
//
// MessageText:
//
// {DLL Initialization Failed}
// Initialization of the dynamic link library %hs failed. The process is terminating abnormally.
//
#define STATUS_DLL_INIT_FAILED ((NTSTATUS)0xC0000142L)
Could you paste the code of your 'DllMain()'?
//
// MessageId: STATUS_DLL_INIT_FAILED
//
// MessageText:
//
// {DLL Initialization Failed}
// Initialization of the dynamic link library %hs failed. The process is terminating abnormally.
//
#define STATUS_DLL_INIT_FAILED ((NTSTATUS)0xC0000142L)
Could you paste the code of your 'DllMain()'?
>>Could you paste the code of your 'DllMain()'?
Sorry, this should of course be
"Could you post the code of your 'DllMain()'?"
:o)
Sorry, this should of course be
"Could you post the code of your 'DllMain()'?"
:o)
ASKER
Yeah...the message is 0xc0000142..."the application failed to initialize".
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
ASKER
Yeah...the message is 0xc0000142..."the application failed to initialize".
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
ASKER
Yeah...the message is 0xc0000142..."the application failed to initialize".
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
You are right..JKR..I was looking at the wrong message...
The DLL is the "FOXDLL"...which I use for building the UserInterface.
So, could you post the code of your 'DllMain()' function?
Without that, we could just guess...
Without that, we could just guess...
BTW: An option might be to set a specific user account for your service (other than 'LocalSystem', which is used by default). You can set that in your service's options in the MMC.
Well, anything new?
ASKER
well...news is I'm on vacation..I'll post the code as soon as I get to work on 8th August....thanks for your interst JKR...
if I have a chance..in the mean time...I'll do it...but does the API's have a "main"???
Thanks,
Leo
if I have a chance..in the mean time...I'll do it...but does the API's have a "main"???
Thanks,
Leo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity, I will suggest to accept "jkr" comment(s) as an answer. If you found your solution you could post it here and get your points refunded.
If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner