Displaying 20 results from an estimated 29 matches for "errordescript".
2004 Jul 31
3
Bug in new_work_item
Hi all,
Windows 2000
Ruby 1.8.2 R7
VC++ 6.0
I noticed that if I try to call new_work_item and give
the task a name that already exists, I get a segfault:
C:\eclipse\workspace\win32-taskscheduler>ruby test.rb
"0.1.0"
test.rb:22:in `new_work_item'': NewWorkItem() function
failed (Win32::TaskSchedul
erError)
from test.rb:22
test.rb:22: [BUG] Segmentation fault
ruby
2004 Jan 22
1
code cleanup suggestion - error classes
Currently, most of the modules define an error class of some sort (e.g.
cWin32ServiceError). Within the code, the error is raised like this:
rb_raise(cWin32ServiceError,ErrorDescription(GetLastError()));
It seems logical that, instead of appending the message every time, that
we should simply call ErrorDescription(GetLastError()) simply by raising
an error (i.e. within the ''initialize'' method of cWin32ServiceError).
In other words, you would simply have to do...
2005 Nov 26
1
Another patch of win32-service for nice startup.
...te Thread for service main
- hThread = CreateThread(NULL,0,ThreadProc,0,0,&ThreadId);
- if(hThread == INVALID_HANDLE_VALUE){
+ // Create the event to signal the service to start.
+ hStartEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
+ if(hStartEvent == NULL){
strcpy(error,ErrorDescription(GetLastError()));
ErrorStopService();
rb_raise(cDaemonError,error);
@@ -257,11 +268,20 @@
rb_raise(cDaemonError,error);
}
- // Wait for SERVICE_RUNNING
- while(dwServiceState != SERVICE_RUNNING){
- sleep(10);
+ // Create Thread for service main
+ h...
2004 Nov 21
3
win32-file, overlapped added
Hi all,
I''ve got overlapped and offset support in both nread and nwrite. The only
thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING
to work. Unfortunately, I can''t get it to work.
Park, I looked at that site you sent (and borrowed some code from it), but I
don''t see anything special happening for NO_BUFFERING. I thought it
required
2006 Dec 07
0
Fwd: win32-service problems with patch
...ERVICE_STOPPED, GetLastError(), 0, 0);
-}
-
DWORD WINAPI ThreadProc(LPVOID lpParameter){
SERVICE_TABLE_ENTRY ste[] =
{{TEXT(""),(LPSERVICE_MAIN_FUNCTION)Service_Main}, {NULL, NULL}};
if (!StartServiceCtrlDispatcher(ste)){
- ErrorStopService();
- strcpy(error,ErrorDescription(GetLastError()));
- // Very questionable here, we should generate an event
- // and be polling in a green thread for the event, but
- // this really should not happen so here we go
- rb_raise(cDaemonError,error);
+ // no service to step, no service handle, no ruby
+...
2004 Nov 07
2
Problems with DeviceIoControl()
...rue or
false");
}
if(rbBool == Qfalse){
inBuf = COMPRESSION_FORMAT_NONE;
}
fn =
NUM2INT(rb_funcall(self,rb_intern("fileno"),0,0));
h = (HANDLE)_get_osfhandle(fn); // Get HANDLE based
on fileno
if(h == INVALID_HANDLE_VALUE){
rb_raise(cFileError,ErrorDescription(GetLastError()));
}
rv = DeviceIoControl(
h,
FSCTL_SET_COMPRESSION,
(LPVOID)inBuf,
sizeof(inBuf),
NULL,
0,
&dwBytesReturned,
NULL
);
if(!rv){
rb_raise(cFileError,ErrorDescription(GetLastError()));
}
return self;
}...
2013 Nov 01
5
xend with XenAPI in stackless python-2.7
....__name,
args)
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 149, in
xenapi_request
result = _parse_result(getattr(self,
methodname)(*full_params))
File "/usr/lib/python2.7/site-packages/XenAPI.py", line 219, in
_parse_result
raise
Failure(result[''ErrorDescription''])
XenAPI.Failure: [''MESSAGE_METHOD_UNKNOWN'',
''pool.get_all'']
>>>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
2005 Jan 06
0
Some thoughts on win32-changenotify
...e to the directory.
hDir = CreateFile(
lpPathName,
FILE_LIST_DIRECTORY,
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE,
NULL,
OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS,
NULL
);
if(hDir == INVALID_HANDLE_VALUE) {
rb_raise(cChangeNotifyError,ErrorDescription(GetLastError()));
}
if(!ReadDirectoryChangesW(
hDir,
Buf,
sizeof(Buf),
bWatchSubtree,
dwNotifyFilter,
&dwBytesReturned,
NULL,
NULL
)){
rb_raise(cChangeNotifyError,ErrorDescription(GetLastError()));
}
So, the question is,...
2005 Jan 20
1
ChangeNotify help wanted
Hi all,
I''ve checked in some code to win32-changenotify. Unfortunately, it
doesn''t work right. I need some help. I don''t understand what,
exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd
argument, nor how to read the data back out.
There''s also a WCHAR issue that needs to be worked out with regards to
the FileName
2004 Jan 22
1
Latest win32-service error
...C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb install
installed
C:\eclipse\workspace\win32-service-0.3.0\test>ruby test2.rb start
(Win32ServiceError)t'': Overlapped I/O operation is in progress.
from test2.rb:42
Any ideas?
Also, it looks like the output from ErrorDescription() is a bit off -
I''m not sure where that "t''" is coming from. Perhaps it should be
tweaked?
Dan
2015 Oct 07
3
gpo failure
Am 07.10.2015 um 12:00 schrieb mourik jan c heupink:
> I have defined two Default Domain Policies, confirmed by the settings
> tab in the Group Policy Management editor:
>
> 1st - computer config, policies, windows settings, scripts, shutdown
> 2nd - user configuration, preferences, windows settings, drive maps
>
> Unless these two happen to be policies that do NOT need a
2015 Oct 06
5
gpo failure
Hi all,
There has been some discussion on GPO's lately, and I find myself having
a problem too. This error in logged on one of our win7 workstations:
EventData
SupportInfo1 2
SupportInfo2 1232
ProcessingMode 1
ProcessingTimeInMilliseconds 1638
ErrorCode 5
ErrorDescription Access is denied.
DCName \\dc4.samba.company.com
GPOCNName
LDAP://CN=User,CN={12B62F356-336D-14D5-896F-00C04FB984F9},CN=Policies,CN=System,DC=samba,DC=company,DC=com
FilePath
\\samba.company.com\sysvol\samba.company.com\Policies\{12B62F356-336D-14D5-896F-00C04FB984F9}\User\registry....
2016 Aug 03
1
Samba 4.2.14 GPO issue
...t;/Data>
<Data Name="*SupportInfo2*">2052</Data>
<Data Name="*ProcessingMode*">0</Data>
<Data Name="*ProcessingTimeInMilliseconds*">3495</Data>
<Data Name="*ErrorCode*">5</Data>
<Data Name="*ErrorDescription*">存取被拒。</Data>
</EventData>
</Event>
- <Event xmlns="*http://schemas.microsoft.com/win/2004/08/events/event
<http://schemas.microsoft.com/win/2004/08/events/event>*">
- <System>
<Provider Name="*Microsoft-Windows-GroupPolicy*&...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...= GetFileAttributes(StringValuePtr(rbPath));
h = CreateFile(
(LPCTSTR)StringValuePtr(rbPath),
FILE_ALL_ACCESS,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
dwAttr,
NULL
);
if(h == INVALID_HANDLE_VALUE){
printf("Error opening file: %s\n",ErrorDescription(GetLastError()));
return Qnil;
}
...
}
I''ve tried various flags for the different arguments, all to no avail. I
either get "permission denied" or "Error opening file: The process cannot
access the file because it is being used
by another process.", d...
2016 Jul 24
3
Samba 4.2.14 GPO issue
Hello Sébastien Le Ray,
The PC reply the following...
The processing of Group Policy failed. Windows could not resolve the user
name. This could be caused by one or more of the following:
a) Name Resolution failure on the current domain controller.
b) Active Directory Replication Latency (an account created on another
domain controller has not replicated to the current domain controller).
The
2016 Nov 17
3
group policy update fails
...he user a
nd computer accounts are in the same forest. Ensure the user domain
name matches
the name of a trusted domain that resides in the same forest as the
computer ac
count.
Computer Policy update has completed successfully.
Windows Event Viewer Log shows:
EventID 1110
ErrorCode 1311
ErrorDescription There are currently no logon servers available to
service the logon request.
Ive tried "samba-tool ntacl sysvolreset"
gpresult /r
INFO: The user does not have RSOP data.
ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : guymcfearsome
Primary...
2019 Jul 26
4
GPO issues - getting SYSVOL cleaned up again
new thread, old issue
been fiddling off-list with tips from Louis over the last days, and
putting it back to the list to ask for help from others:
2 samba-4.9.11 DCs
1 samba-4.8.12 DM file server
GPOs not working cleanly anymore
tried to resync completely etc etc
-
right now I test gpupdate/gpresult on an older (not productive) W2008R2
server which I use for editing stuff via RSAT/MMC
I
2013 Mar 29
1
GPO Computer settings not applied
...s working as expected. However, Computer configuration is never applied properly. Event logs show this entry:
------
Source: GroupPolicy (Microsoft-Windows-GroupPolicy)
Event ID: 1058
EventData
SupportInfo1 4
SupportInfo2 820
ProcessingMode 0
ProcessingTimeInMilliseconds 516
ErrorCode 5
ErrorDescription Access is denied.
DCName debian-server.gym.internal
GPOCNName cn={CE7B09A1-D85A-4A40-9C2F-3DD0DA013345},cn=policies,cn=system,DC=gym,DC=internal
FilePath \\gym.internal\SysVol\gym.internal\Policies\{CE7B09A1-D85A-4A40-9C2F-3DD0DA013345}\gpt.ini
The processing of Group Policy failed. Windo...
2015 Oct 06
0
gpo failure
...UID belongs, open the GPMC, expand
"Group Policy Objects". When you click each entry, the "Details" tab
shows you the GUID.
> EventData
> SupportInfo1 2
> SupportInfo2 1232
> ProcessingMode 1
> ProcessingTimeInMilliseconds 1638
> ErrorCode 5
> ErrorDescription Access is denied.
> DCName \\dc4.samba.company.com
> GPOCNName
> LDAP://CN=User,CN={12B62F356-336D-14D5-896F-00C04FB984F9},CN=Policies,CN=System,DC=samba,DC=company,DC=com
>
> FilePath
> \\samba.company.com\sysvol\samba.company.com\Policies\{12B62F356-336D-14D5-896F-00C0...
2015 Oct 07
0
gpo failure
...to me at all. :-) I just noticed that windows logs
> contain the following error: (see my first post)
>
> > EventData
> > SupportInfo1 2
> > SupportInfo2 1232
> > ProcessingMode 1
> > ProcessingTimeInMilliseconds 1638
> > ErrorCode 5
> > ErrorDescription Access is denied.
> > DCName \\dc4.samba.company.com
> > GPOCNName LDAP://CN=User,CN={31B2F340-016D-11D2-945F-
> 00C04FB984F9},CN=Policies,CN=System,DC=samba,DC=company,DC=com
> > FilePath
> \\samba.company.com\sysvol\samba.company.com\Policies\{31B2F340-016D-11D2-...