Thanks for the reply idle.
If you could run the code on a Windows machine and you commented out the SetGadgetState command then you get all 10 debugs of index as expected. The only time the semaphore seems to lock is when the command SetGadgetState is used within a semaphore.
If when creating the ...
Search found 26 matches
- Fri Jul 11, 2014 8:17 am
- Forum: Windows
- Topic: Semaphore issue with setgadgetstate on imagegadget
- Replies: 2
- Views: 2476
- Thu Jul 10, 2014 7:06 pm
- Forum: Windows
- Topic: Semaphore issue with setgadgetstate on imagegadget
- Replies: 2
- Views: 2476
Semaphore issue with setgadgetstate on imagegadget
I'm trying to get my head around mutex's and semaphore's and I thought I had it until my project came to a halt when trying to to use setgadgetstate to change the image of an imagegadget.
Code just locks up but does not crash.
Every other command I've used in a semaphore so far has had no problem ...
Code just locks up but does not crash.
Every other command I've used in a semaphore so far has had no problem ...
- Fri Apr 25, 2014 12:15 pm
- Forum: Windows
- Topic: GetEnvironmentVariable() x64 x86 issue.
- Replies: 5
- Views: 3462
Re: GetEnvironmentVariable() x64 x86 issue.
Interesting.
I understand the limitations imposed by the OS in this situation. I did read the manual of which it said “Returns the content of the specified environment variable from the programs environment block”. It’s easy to see how it could be misunderstood and I apologise for the inconvenience.
I understand the limitations imposed by the OS in this situation. I did read the manual of which it said “Returns the content of the specified environment variable from the programs environment block”. It’s easy to see how it could be misunderstood and I apologise for the inconvenience.
- Fri Apr 25, 2014 10:32 am
- Forum: Windows
- Topic: GetEnvironmentVariable() x64 x86 issue.
- Replies: 5
- Views: 3462
GetEnvironmentVariable() x64 x86 issue.
I seem to have found a problem with GetEnvironmentVariable(). I'm using 5.22 LTS x64 IDE on Windows 8.1(Update 1) x64 (8.0 to 8.1 upgrade) and have the problem on the same set-up on my laptop.
Sample code –
Debug GetEnvironmentVariable("CommonProgramFiles")
Debug GetEnvironmentVariable ...
Sample code –
Debug GetEnvironmentVariable("CommonProgramFiles")
Debug GetEnvironmentVariable ...
- Wed Jan 22, 2014 11:16 pm
- Forum: Windows
- Topic: Help required for API's returning data to structured arrays.
- Replies: 2
- Views: 1871
Re: Help required for API's returning data to structured arr
Many thanks for that Danilo.
- Wed Jan 22, 2014 2:03 pm
- Forum: Windows
- Topic: Help required for API's returning data to structured arrays.
- Replies: 2
- Views: 1871
Help required for API's returning data to structured arrays.
I’m starting to get into some slightly advanced programming that requires the use of Windows and third party API’s on Windows 8.1 with PB 5.21 LTS. I use many of the simple Windows API’s and I’m happy with the basic use of structures and linked lists but some of the API’s want to return data to a ...
- Fri Feb 12, 2010 4:04 pm
- Forum: Coding Questions
- Topic: Possible bug with StatusBarProgress
- Replies: 2
- Views: 730
Re: Possible bug with StatusBarProgress
Thanks for that.
However, sorry about the sloppy code but then I did say that I modified the DEMO from the manual.
Is anyone aware of the StatusBarProgress issue or should I post it in the bug section?
However, sorry about the sloppy code but then I did say that I modified the DEMO from the manual.
Is anyone aware of the StatusBarProgress issue or should I post it in the bug section?
- Fri Feb 12, 2010 12:26 pm
- Forum: Coding Questions
- Topic: Possible bug with StatusBarProgress
- Replies: 2
- Views: 730
Possible bug with StatusBarProgress
I have searched the forum and can find very little posted about the StatusBarProgress command.
What I wanted to do was use the progress bar and then hide it and use the field for other info but I've come across an issue.
I can create and use the progress bar as documented in the manual but it does ...
What I wanted to do was use the progress bar and then hide it and use the field for other info but I've come across an issue.
I can create and use the progress bar as documented in the manual but it does ...
- Sat Jan 09, 2010 11:21 pm
- Forum: General Discussion
- Topic: Any USB HID Examples?
- Replies: 6
- Views: 3584
Re: Any USB HID Examples?
Thanks for all the help.
MPZ's solutons was the easiest to implement and my PC18F4550 is working just fine.
Thanks again.
MPZ's solutons was the easiest to implement and my PC18F4550 is working just fine.
Thanks again.
- Thu Nov 05, 2009 8:46 am
- Forum: General Discussion
- Topic: Any USB HID Examples?
- Replies: 6
- Views: 3584
Re: Any USB HID Examples?
Thanks.
That may be a good starting point for me.
That may be a good starting point for me.
- Mon Oct 26, 2009 4:31 pm
- Forum: General Discussion
- Topic: Any USB HID Examples?
- Replies: 6
- Views: 3584
Re: Any USB HID Examples?
Thanks for your reply.
I've got some examples in VB and C and they appear to use a lot of API calls.
I've got some examples in VB and C and they appear to use a lot of API calls.
- Fri Oct 16, 2009 6:04 pm
- Forum: General Discussion
- Topic: Any USB HID Examples?
- Replies: 6
- Views: 3584
Any USB HID Examples?
Does anyone have any working example code in PB that shows how to -
1. Search list of HID's and find a specific HID & PID
2. Connect to that HID & PID and transfer data and receive data
I have done a search and the best I've found is http://www.purebasic.fr/english/viewtopic.php?f=5&t=37721 .
This ...
1. Search list of HID's and find a specific HID & PID
2. Connect to that HID & PID and transfer data and receive data
I have done a search and the best I've found is http://www.purebasic.fr/english/viewtopic.php?f=5&t=37721 .
This ...
- Sun Dec 05, 2004 4:50 pm
- Forum: Tricks 'n' Tips
- Topic: Sending NT-Messages, retrieve all local LAN-Users
- Replies: 7
- Views: 3424
- Sat Dec 04, 2004 4:15 pm
- Forum: Tricks 'n' Tips
- Topic: Sending NT-Messages, retrieve all local LAN-Users
- Replies: 7
- Views: 3424
- Tue May 25, 2004 7:47 am
- Forum: Tricks 'n' Tips
- Topic: IsAdministrator()
- Replies: 23
- Views: 11528