Search found 2927 matches

by Chris
Mon Nov 24, 2025 9:39 am
Forum: Deutsches Forum
Topic: VO Prog hängt, Testanzeige + Compilieren hilft
Replies: 10
Views: 297

Re: VO Prog hängt, Testanzeige + Compilieren hilft

Hi Franz,

It is possible that the program actually runs, but something in your code expects somethings from the system that isn't available and it enter accidentally an eternal loop, before actually showing any window. To find out if this is the case, I would add some logging to a file in the very ...
by Chris
Wed Nov 19, 2025 11:32 am
Forum: Deutsches Forum
Topic: C# Syntax erklärungsbedürftig
Replies: 15
Views: 648

Re: C# Syntax erklärungsbedürftig

Hi Arne,

That's why I dislike such language features like interpolated strings, they are powerful, but can make the code very difficult for others to read when they are abused. And even more difficult to debug. At least when the one reading it is a human :)
by Chris
Tue Nov 18, 2025 11:22 pm
Forum: Product
Topic: Issues trying to get a thumbnail extracted from a MP4 video
Replies: 6
Views: 420

Re: Issues trying to get a thumbnail extracted from a MP4 video

Hi Dick,

Good idea using the PlayStateChange event, I had not looked into that!

The idea for using a timer is to run a loop that calls DoEvents() for a couple seconds, to allow the GUI to "breathe" and do any work needed to start the video (which apparently happens asynchronously), then capture it ...
by Chris
Mon Nov 17, 2025 10:42 am
Forum: Deutsches Forum
Topic: C# Syntax erklärungsbedürftig
Replies: 15
Views: 648

Re: C# Syntax erklärungsbedürftig

Hi Franz,

Please try this:

Code: Select all

apdu = String.Format("00B0{0:X4}80" , i << 8);
by Chris
Fri Nov 14, 2025 12:31 am
Forum: Product
Topic: Issues trying to get a thumbnail extracted from a MP4 video
Replies: 6
Views: 420

Re: Issues trying to get a thumbnail extracted from a MP4 video

Hi Dick,

It's encouraging to see that AI tools can still suggest a lot of nonsense :)


From what I read, this method cannot work, because DrawToBitmap() is not supported from the media player control, that's why you get a black image.

I'm sure there must be a generally better way to achieve this ...
by Chris
Wed Nov 12, 2025 2:15 pm
Forum: Deutsches Forum
Topic: C# Syntax erklärungsbedürftig
Replies: 15
Views: 648

Re: C# Syntax erklärungsbedürftig

Hi Franz,

The "original code" version should work, why did you change it? Did you get a compiler error (maybe due to old c# compiler) ?

The "$" symbol stands for intrpolated string in c#, so you can include variable names within the string. An alternative way to write it is:

Console.WriteLine ...
by Chris
Wed Nov 12, 2025 12:48 pm
Forum: Deutsches Forum
Topic: C# Syntax erklärungsbedürftig
Replies: 15
Views: 648

Re: C# Syntax erklärungsbedürftig

Btw, the exact code translation to older c# versions is

Code: Select all

typeofparameter _discard;
int sw = TransmitCommand(_reader, sendBuffer, out _discard);

if (_context != null)
  _context.Dispose();
Where "typeofparameter" is the type of that 3rd param that is used by the TransmitCommand() method.
by Chris
Wed Nov 12, 2025 12:45 pm
Forum: Deutsches Forum
Topic: C# Syntax erklärungsbedürftig
Replies: 15
Views: 648

Re: C# Syntax erklärungsbedürftig

Guys,

Yeah, XIDE uses a c# compiler version found in a default location. I have no idea how to find automatically the latest/newer version, so you have to do it manually. Just go to the Program Files folder and search for csc.exe. There will be plenty, just pick the most recent and set this in ...
by Chris
Wed Oct 29, 2025 1:13 pm
Forum: Product
Topic: VOXPorter and description field in fieldspec
Replies: 3
Views: 352

Re: VOXPorter and description field in fieldspec

Hi Basile,

Please send it directly chris at xsharp eu
by Chris
Wed Oct 29, 2025 12:57 am
Forum: Product
Topic: VOXPorter and description field in fieldspec
Replies: 3
Views: 352

Re: VOXPorter and description field in fieldspec

Hi Basile,

Did a quick test and seems to work ok here, there must be some difference that I'm not thinking of. Does this happen with all fieldspecs in your app(s). Can you please send me a VO module .mef (or app) with dbservers from your app to test with it here?