Search found 6 matches

by Adhara
Mon 24. Apr 2023, 14:27
Forum: PCAN-Basic
Topic: Worker.Stop cause all workers to stop
Replies: 18
Views: 8796

Re: Worker.Stop cause all workers to stop

on the other hand it doesn't seem to go fast enough
Nobody said fast. Nobody complained about anything.

I am baffled by the harshness of your answer.

Regards
A
by Adhara
Mon 24. Apr 2023, 10:18
Forum: PCAN-Basic
Topic: Worker.Stop cause all workers to stop
Replies: 18
Views: 8796

Re: Worker.Stop cause all workers to stop

Hi all,

I am also interested in this fix and I would also wait for the official release.


it could need some time.

I think the question was about having an estimate of this some time . I'm interpreting here, but it sounds like the guy is aware he has to wait and he has no problems doing so, he ...
by Adhara
Wed 12. Apr 2023, 11:13
Forum: PCAN-Basic
Topic: Worker proper cleanup
Replies: 3
Views: 1680

Re: Worker proper cleanup

Thanks for the free C# lesson.
Finalizers are not very common in .NET, Worker should probably implement IDisposable, if it needs to release managed resources. (as suggested here by Microsoft ), this would also allow using statement and make Worker lifecyle more obvious.

To avoid event registration ...
by Adhara
Wed 12. Apr 2023, 10:30
Forum: PCAN-Basic
Topic: PEAK CAN development when no actual CAN bus is available
Replies: 1
Views: 1191

PEAK CAN development when no actual CAN bus is available

Hi,

it happens that we need to develop CAN software without having an actual CAN bus available on the dev machine. Or, if we have one, we have no device sending data on it.
We usually develop with PEAK Basic API which allows only one connection per bus, so we cannot have a fake data writer and a ...
by Adhara
Wed 12. Apr 2023, 08:40
Forum: PCAN-Basic
Topic: Worker proper cleanup
Replies: 3
Views: 1680

Worker proper cleanup

Hi,

two quick questions on how to properly dispose a worker instance. I could not find any documentations about.


Should I also deregister the MessageReceived event when stopping a worker using the -= operator? If yes, should I do that before or after calling Stop()?
Should I explicitely call ...
by Adhara
Sat 11. Nov 2017, 10:20
Forum: PCAN-Basic
Topic: Reset timestamps
Replies: 21
Views: 24179

Re: Reset timestamps

Hi,

we are working with PCAN basic on Windows and would need to translate the timestamp into an absolute datetime. We are aware that we are potentially losing some precision (the micros) but the question is what time should be used as the reference time. I know it's the last Win reboot, but in .NET ...