PC Review


Reply
Thread Tools Rate Thread

Access Violation startig EXE from Login Script

 
 
Marcio Vinholes Ferreira
Guest
Posts: n/a
 
      11th Jul 2005
Hi All,
I wrote a small C program that colects machine inventory - it is started
from a public share (eg. //SRV/Share/prog.exe) at user Login Script....
Now Windows9x are experiencing Access Violation errors when the .EXE is
started from Logon$ directory (eg. //DC-SRV/Logon$/prog.exe).

Do you have any idea why it is happening??

TIA,
Marcio

PS: It's seems not to be a bug on prog.exe, since it works fine on W2K, XP
machines... and also, it works fine when started from a local disk on Win9x
machines that are experiencing AV. errors...


 
Reply With Quote
 
 
 
 
Olaf Engelke [MVP Windows Server]
Guest
Posts: n/a
 
      11th Jul 2005
Hi,
Marcio Vinholes Ferreira wrote:
> I wrote a small C program that colects machine inventory - it is
> started from a public share (eg. //SRV/Share/prog.exe) at user Login
> Script.... Now Windows9x are experiencing Access Violation errors when the
> .EXE
> is started from Logon$ directory (eg. //DC-SRV/Logon$/prog.exe).
>
> Do you have any idea why it is happening??
>

does the program try to write any output to a certain folder, which maybe
not exist in Windows 9x?
Does it use environment variables like %computername%, which also do not
exist on Windows 9x?
Does it use DLLs which are different in Windows XP?
Without even to know, what the program does and how it is built, it's hard
to figure out what goes wrong.
Best greetings from Germany
Olaf.

 
Reply With Quote
 
Marcio Vinholes Ferreira
Guest
Posts: n/a
 
      11th Jul 2005
Tks... The problem is solved when I changed the directory my program was
started from.
It was //DC-SRV/Logon$/prog.exe while changing to a public share
//SRV/Share/prog.exe the Access Violation stops to occur.

Don't know exaclty why... but it's now working...

Regards,
Marcio

"Olaf Engelke [MVP Windows Server]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> Marcio Vinholes Ferreira wrote:
>> I wrote a small C program that colects machine inventory - it is
>> started from a public share (eg. //SRV/Share/prog.exe) at user Login
>> Script.... Now Windows9x are experiencing Access Violation errors when
>> the .EXE
>> is started from Logon$ directory (eg. //DC-SRV/Logon$/prog.exe).
>>
>> Do you have any idea why it is happening??
>>

> does the program try to write any output to a certain folder, which maybe
> not exist in Windows 9x?
> Does it use environment variables like %computername%, which also do not
> exist on Windows 9x?
> Does it use DLLs which are different in Windows XP?
> Without even to know, what the program does and how it is built, it's hard
> to figure out what goes wrong.
> Best greetings from Germany
> Olaf.



 
Reply With Quote
 
Olaf Engelke [MVP Windows Server]
Guest
Posts: n/a
 
      11th Jul 2005
Hi Marcio
Marcio Vinholes Ferreira wrote:
> Tks... The problem is solved when I changed the directory my program
> was started from.
> It was //DC-SRV/Logon$/prog.exe while changing to a public share
> //SRV/Share/prog.exe the Access Violation stops to occur.
>
> Don't know exaclty why... but it's now working...

so may be it needed write permissions - which are not given to the netlogon
share for users normally.

Best greetings from Germany
Olaf

 
Reply With Quote
 
Marcio Vinholes Ferreira
Guest
Posts: n/a
 
      11th Jul 2005
Olaf...
No... my program doesn't need Write permissions at its current directory...
The new share is also R/O...
I think the problem is related to have the session handle of Logon Script
window lost after its processing finished.

Best greeting from Brazil... too...
Marcio

"Olaf Engelke [MVP Windows Server]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Marcio
> Marcio Vinholes Ferreira wrote:
>> Tks... The problem is solved when I changed the directory my program
>> was started from.
>> It was //DC-SRV/Logon$/prog.exe while changing to a public share
>> //SRV/Share/prog.exe the Access Violation stops to occur.
>>
>> Don't know exaclty why... but it's now working...

> so may be it needed write permissions - which are not given to the
> netlogon share for users normally.
>
> Best greetings from Germany
> Olaf



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: vb script to compact Access database, how to add login & pw Janis Microsoft Access Macros 3 6th May 2009 10:55 AM
Creating a simple Login/VBA script in MS Access webmaster@cidcanada.com Microsoft Access VBA Modules 1 15th Sep 2005 04:29 AM
Running a login script only when the script has changed =?Utf-8?B?TXIgQnJvd25zdG9uZQ==?= Microsoft Windows 2000 CMD Promt 4 19th May 2004 01:26 PM
Access Denied in Login Script. need to overrite host file Anthoni Microsoft Windows 2000 CMD Promt 1 15th Apr 2004 10:18 PM
startig with c# dumboo Microsoft C# .NET 4 15th Feb 2004 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.