-
Never mind the race condition was my coding problem. I added variables in the STA for the ActiveXComponent and its DispatchProxy. I accidentally initialized them in the variable declaration and in the OnInit. Initializing only in the OnInit seems to fix the problem.
2009-11-03 00:19:35 UTC in JACOB - Java COM Bridge
-
OK, that seemed to be the problem. I put the code to create the object inside an STA, added a DispatchProxy and am now getting events.
But I am seeing weird behavior with sometimes getting events and sometimes not. I'm thinking it was a race condition between the STA thread and my main thread, but everything I try, I still sometimes don't get my events.
2009-11-03 00:07:40 UTC in JACOB - Java COM Bridge
-
I have determined that when DispatchEvents is created that SAPI is calling the EventProxy's QueryyInterface to check if it has that interface, but the invoke is never called.
I am wondering now if the problem may be that it is using a technique I have seen elsewhere where it requires a windows message pump to be implemented by the thread that does the initialization. I have seen this before...
2009-11-02 22:26:22 UTC in JACOB - Java COM Bridge
-
I am trying to use JACOB to interface with Microsoft SAPI. I can make the calls into SAPI, but I seem to be completely unable to receive events from SAPI.
Here is some test code I put in an excel worksheet with a button and a text box to test events in visual basic:
Dim WithEvents Voice As SpVoice
Private Sub CommandButton1_Click()
Set Voice = New SpVoice...
2009-11-02 15:25:42 UTC in JACOB - Java COM Bridge
-
My point was not what was in the default, but that the tags be configurable and not just add something that only did it for generated. Since it would be configurable you could remove Test if you wanted to.
This all gets back to an idea I have brought up before. The problem with Checkstyle configuration is that you can declare filters, but they only apply to suppressing output under certain...
2009-08-12 16:10:42 UTC in checkstyle
-
It would probably be best to have two settings one for ignoring methods and one for ignoring classes and have a parameter for the list of tags to signal ignoring the class/method. By default this parameter could be set to Generated. Might also want to include Test in the default for junit tests.
2009-08-12 13:19:39 UTC in checkstyle
-
If you read the book Code Complete you might have seen how he will show example code with a big indication in the margin that this is a "Coding Horror". That is how I would label the example here.
I swear it took me about 30 seconds to try to figure out what that code was supposed to be doing. I think because of the size of the for statement I kept trying to parse it as a regular for statement.
2009-06-08 03:11:34 UTC in checkstyle
-
I just upgraded from 2.6.14 to 2.12.2 and noticed a change in behavior that makes WinMerge much more of a pain and I'm wondering if there is a way to go back to the old behavior. Otherwise I will have to downgrade because this makes WinMerge just about useless for me.
When comparing 2 folders in 2.16.14 and there was a folder that only existed in one of the two places you would see that...
2009-04-21 16:02:38 UTC in WinMerge
-
OK, I figured out the project network diagram that lets you somewhat easily set constraints. And I coworker pointed out that you can drag and drop in project explorer to set constraints.
But it would be nice if there was a Gantt chart way to do it and it would be nice if the Gantt chart didn't keep collapsing when something changes.
2009-04-18 01:25:12 UTC in xProcess
-
I'm finding that setting constraints between tasks is a pretty vital part of getting things to schedule in the correct order. Particularly for a sequence of subtasks that have a necessary ordering to them.
But the process of adding constraints is rather time consuming and labor intensive. Perhaps there is an easy and fast way to setup constraints that I don't know about. Currently if I have...
2009-04-17 20:57:32 UTC in xProcess