visual basic threading.thread.sleep too fast

Questions about Wine on Linux
Locked
ibdave
Level 2
Level 2
Posts: 12
Joined: Mon Apr 24, 2023 7:13 pm

visual basic threading.thread.sleep too fast

Post by ibdave »

Just fyi - I'm not an expert at anything. So I'm a novice at Wine and a novice at visual basic programming. I have a program I wrote in vb using visual studio free edition. It has the ability to "speak" based if a value is set to true. When finished speaking it needs to pause about 4 seconds before continuing. I have used the following code to do that: <code> If AUDIOIS Then
Threading.Thread.Sleep(4000)
End If</code>

This works fine in Windows. I have tried Wine in both linux Mint and in Fedora linux but there doesn't seem to be any delay, or if it's there it's very fast.

Is there something additional I need to include from winetricks?

WINEARCH=win32 required for this program.

Thanks in advance.
ibdave
Level 2
Level 2
Posts: 12
Joined: Mon Apr 24, 2023 7:13 pm

Re: visual basic threading.thread.sleep too fast

Post by ibdave »

If it helps - threading.thread.sleep actually "suspends" the thread for the given number of milliseconds. It appears not to do anything in Wine - perhaps Wine has no way to "suspend" a thread?
ibdave
Level 2
Level 2
Posts: 12
Joined: Mon Apr 24, 2023 7:13 pm

SOLVED Re: visual basic threading.thread.sleep too fast

Post by ibdave »

Appears I had to have vbrun6 installed for this to work.
Locked