Can't run some commands after some time in minlogon, why???
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
Can't run some commands after some time in minlogon, why???

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System
Author Message
karl
Guest





Posted: Tue Nov 08, 2005 9:27 am    Post subject: Can't run some commands after some time in minlogon, why??? Reply with quote

Hi,
My image can't run some commands (such as cmd.exe, net.exe, but
internal commands like "dir", "cd" run ok) after about 33 minutes.
My developement environment is XPE SP2. My image uses minlogon.

After many tests, I found that ONLY after a service started, that
strange behavior appears. That service is develped by my colleague, and
is part of a product of my company. I asked him, but he didn't know why
either.

In Windows XP sp2, that service runs ok. So I think I must lose some
components. But I don't know which and why?

Can anyone help me, thanks in advance.

Karl
Back to top
karl
Guest





Posted: Wed Nov 09, 2005 9:29 am    Post subject: Re: Can't run some commands after some time in minlogon, why Reply with quote

Resolved.

If shut down the service's interface, everything runs ok.

Karl
Back to top
karl
Guest





Posted: Wed Nov 09, 2005 9:29 am    Post subject: Re: Can't run some commands after some time in minlogon, why Reply with quote

Quote:
If shut down the service's interface, everything runs ok.

I mean disable that service's GUI inteface.

Strange problem and solution.
Back to top
dferencz@gmail.com
Guest





Posted: Wed Nov 09, 2005 5:27 pm    Post subject: Re: Can't run some commands after some time in minlogon, why Reply with quote

Karl,

I discovered behavior with a printer driver (which runs as a service)
that sounds similar to your problem. Basically, the driver's print
monitor DLL calls the Terminal Services API (WTSEnumerateSessions) to
get a handle to the desktop and display GUI information. Thus, the
driver needs Terminal Services to work properly!! (Since you're using
minlogon, I know you don't have the TS component included.) Luckily I
found a way around this by disabling all GUI output from the driver
(via a registry entry).

This is very hard to diagnose, since the recommended way of accessing
the TS API is not via linking (to a LIB file), but by using
LoadLibrary() and GetProcAddress() (since the TS API was not available
until NT SP4, this maintains backward compatibility.) The print driver
also made calls to GetVersionInfo() to attempt to determine if it was
running on NT pre-SP4 (and then used an alternate method to attach to
the desktop.)

You might try using FileMon to see if there are any attempts to access
'wtsapi32.dll'...

-- Don
Back to top
karl
Guest





Posted: Thu Nov 10, 2005 9:28 am    Post subject: Re: Can't run some commands after some time in minlogon, why Reply with quote

dferencz,

Using FileMon, I cannot find any attemps to access 'wtsapi32.dll'.

My colleague told me that that service has too GUI interfaces: a
dialog and a systray icom. And that service check itselft for its
interfaces, if any of them is not displayed, try to show it again and
again. My minlogon image does not has the component about systray, so
its perpetual try to show the systray may use too much memory to cause
memory overflow.
Using task manager, I found that's not the causation.

Karl
Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB