Click here to Skip to main content
15,860,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: send and receive command from serial port to textbox in c# Pin
Richard MacCutchan16-Jul-14 22:44
mveRichard MacCutchan16-Jul-14 22:44 
QuestionC# Problem Pin
Gaurav Shukla C#16-Jul-14 6:53
Gaurav Shukla C#16-Jul-14 6:53 
AnswerRe: C# Problem Pin
PIEBALDconsult16-Jul-14 7:18
mvePIEBALDconsult16-Jul-14 7:18 
AnswerRe: C# Problem Pin
Dave Kreskowiak16-Jul-14 7:46
mveDave Kreskowiak16-Jul-14 7:46 
AnswerRe: C# Problem Pin
OriginalGriff16-Jul-14 8:16
mveOriginalGriff16-Jul-14 8:16 
QuestionHow to display all textbox in datagridviewTextBox of datagridview using C#application Pin
ngthtra16-Jul-14 5:52
ngthtra16-Jul-14 5:52 
AnswerRe: How to display all textbox in datagridviewTextBox of datagridview using C#application Pin
Eddy Vluggen16-Jul-14 7:52
professionalEddy Vluggen16-Jul-14 7:52 
QuestionStrange problems with WaitForSingleObject Windows function Pin
_Erik_16-Jul-14 5:35
_Erik_16-Jul-14 5:35 
I am having a really strange problem with a component designed to watch for the printer events:

First of all, the component has been working like a charm for years in all of the computers in which I have tested and with several operating systems (Windows XP, Vista, 7 and 8.1), in 32 and 64 bits, and running as normal user and local admin as well. However, in the computers of my last customer (Windows 7 64 bits) it only works when running as local admin which is, of course, unacceptable.

Before bothering the admins of my customer I would like to know if someone of you has any ideas about the issue, because I have to confess I am completely puzzled.

Basically, the compoment starts a thread in which it invokes FindFirstPrinterChangeNotification, which returns a valid handle. Then it invokes WaitForSingleObject for that handle and here is where things get strange: in every other computer, as I said before, it receives and processes the signals perfectly, but in my customer's ones, unless run under local admin, it just stays waiting and receiving no signals no matter what the printer is doing. I mean it does nothing, not even errors. It just waits but the signal does never arrive.

I have been reading through the MSDN documentation but I cannot find any plausible explanation: the printer is a local printer which prints to a file and, yes, WaitForSingleObject requires SYNCHRONIZE access right, which I think shouldn't be a big deal.

I have not pasted code here because, as I said, it works like a charm in every other computer, so it must be a security configuration issue. Any ideas?

Thank you very much.
AnswerRe: Strange problems with WaitForSingleObject Windows function Pin
Eddy Vluggen16-Jul-14 7:51
professionalEddy Vluggen16-Jul-14 7:51 
GeneralRe: Strange problems with WaitForSingleObject Windows function Pin
_Erik_17-Jul-14 0:10
_Erik_17-Jul-14 0:10 
GeneralRe: Strange problems with WaitForSingleObject Windows function Pin
patbob18-Jul-14 7:42
patbob18-Jul-14 7:42 
GeneralRe: Strange problems with WaitForSingleObject Windows function Pin
_Erik_20-Jul-14 21:21
_Erik_20-Jul-14 21:21 
QuestionWeb Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 20:58
chandu_vrs15-Jul-14 20:58 
SuggestionRe: Web Service and Cross Mobile Platform Pin
Richard MacCutchan15-Jul-14 22:10
mveRichard MacCutchan15-Jul-14 22:10 
AnswerRe: Web Service and Cross Mobile Platform Pin
Pete O'Hanlon15-Jul-14 22:16
subeditorPete O'Hanlon15-Jul-14 22:16 
GeneralRe: Web Service and Cross Mobile Platform Pin
chandu_vrs15-Jul-14 22:33
chandu_vrs15-Jul-14 22:33 
QuestionHow should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
Member 1094946315-Jul-14 19:57
Member 1094946315-Jul-14 19:57 
AnswerRe: How should i encrypt the data by using SHA1 Algorithm? Please elaborate it? Pin
OriginalGriff15-Jul-14 20:48
mveOriginalGriff15-Jul-14 20:48 
Questionhow to convert a .txt file to return an array? c# Pin
Member 1094881815-Jul-14 10:48
Member 1094881815-Jul-14 10:48 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Mycroft Holmes15-Jul-14 12:59
professionalMycroft Holmes15-Jul-14 12:59 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Mc_Topaz15-Jul-14 14:45
Mc_Topaz15-Jul-14 14:45 
GeneralRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:35
Rob Philpott15-Jul-14 20:35 
AnswerRe: how to convert a .txt file to return an array? c# Pin
Rob Philpott15-Jul-14 20:28
Rob Philpott15-Jul-14 20:28 
AnswerRe: how to convert a .txt file to return an array? c# Pin
OriginalGriff15-Jul-14 20:49
mveOriginalGriff15-Jul-14 20:49 
QuestionGet csv outputfil from file.msg Pin
Member 1092249815-Jul-14 5:32
Member 1092249815-Jul-14 5:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.