+ To clarify: IMO any such explicit initialization as WIN_COMINIT()
isn't very elegant in Harbour programs and programmers tend to forget
it. Hence IMO it should be done automatically on first call, but in
this case we have to deal with MT mode also if I'm not missing anything.
Brgds,
Viktor
On 2009.09.15., at 15:00, Viktor Szakáts wrote:
Hi Alex,
This patch won't solve the problem when someone tries
to use the low-level (non-class) interface directly.
(f.e. I use such code).
So it needs to be moved to low-level. On low-level
though it should be made MT ready.
Brgds,
Viktor
On 2009.09.15., at 14:39, Alex Strickland wrote:
Przemyslaw Czerpak wrote:
If you see such things in the code then it only means that author
wanted
to create sth but didn't know how and created dummy code which was
never
executed and it was not even possible to execute it explicitly
from .prg
code. It also suggests that other parts of such code should be
carefully
checked.
I have made a change to ensure the initialisation works correctly.
You are right that I did not test that part, it seemed a no-brainer
as all it was doing was ensuring that invalid ports will be picked
up, and I didn't try an invalid port.
As for the rest I have used it for a few years and I think that
while far from perfect it is usable. The other new parts are
working for me.
Thanks for fixing the warnings.
Please review and commit if it looks ok.
Regards
Alex
<win_com.zip>_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour