Access violation when i use a usb library in a module
Hello
I'm trying to develop a module that can control a stepper motor.
(Ref of Command card: http://www.electrobee.com/usb-stepper/)
For this I use the c static library "libstepper" which itself contains the c static library "libusb-win32".
The module generates the following error:
[4] Error:pgUser CallBack Access violation at address 00905A4D in module 'UsineMain.exe'. Write of address 00000000
[5] Error:Internal in pgUser CallBack
It seems that the use of methods of "libusb-win32", which generates errors, and I do not know how to solve the problem.
Thank you for your help
I'm trying to develop a module that can control a stepper motor.
(Ref of Command card: http://www.electrobee.com/usb-stepper/)
For this I use the c static library "libstepper" which itself contains the c static library "libusb-win32".
The module generates the following error:
[4] Error:pgUser CallBack Access violation at address 00905A4D in module 'UsineMain.exe'. Write of address 00000000
[5] Error:Internal in pgUser CallBack
It seems that the use of methods of "libusb-win32", which generates errors, and I do not know how to solve the problem.
Thank you for your help
First , welcome !
I 'm not a specialist about this , so gone to try to find you martignasse . .
but always glad to see new projects . ..
can you tell us more about it . ? hardware sequencer . ?
I 'm not a specialist about this , so gone to try to find you martignasse . .
but always glad to see new projects . ..
can you tell us more about it . ? hardware sequencer . ?
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
Hi anbd,
Welcome aboard, interesting module you want to make here
From what i saw on the electrobee page :
about the c static lib you want to use, seems like it require the MinGW/MSYS compiler.
Like mentioned one the LibUsbWin32 sourceforge page, seems like not compatible with the VC++ compiler we use for now...
Maybe a solution could be to use the SDK and compile your module with code::blocks, who use MinGW/MSYS as compiler....
But it's not a trivial task, as it need to make a code::blocks version of the SDK (and maintain it !)...
Anyway, from the error message you pasted, it seems that you can compile the module and error are at execution time inside Usine, right ?
Did you try in debug mode ? (more info here, under Breakpoints from VC++ section) with some breakpoints to isolate the line who produce the error ?
Hope it help.
Welcome aboard, interesting module you want to make here
From what i saw on the electrobee page :
about the c static lib you want to use, seems like it require the MinGW/MSYS compiler.
Like mentioned one the LibUsbWin32 sourceforge page, seems like not compatible with the VC++ compiler we use for now...
Maybe a solution could be to use the SDK and compile your module with code::blocks, who use MinGW/MSYS as compiler....
But it's not a trivial task, as it need to make a code::blocks version of the SDK (and maintain it !)...
Anyway, from the error message you pasted, it seems that you can compile the module and error are at execution time inside Usine, right ?
Did you try in debug mode ? (more info here, under Breakpoints from VC++ section) with some breakpoints to isolate the line who produce the error ?
Hope it help.
Martin FLEURENT - Usine Developer - SDK maintainer
-
La Tenaille
- Member
- Posts: 547
- Location: Saint Etienne (France)
- Contact:
Hi,nay-seven wrote:can you tell us more about it . ? hardware sequencer . ?
I've initiated this project with my brother and Anbd. The goal is to control my sliding didjeridoo from Usine.
My brother is building the hardware and Anbd (don't think you know music a lot ?) programs the interface to control the didj from Usine.
The didjeridoo is set on a stand, the mechanical structure (with a stepper motor) is supposed to slide the didj.
The artistic goal is to be able to slide the didjeridoo (to change key) with any MIDI controler (switch, pedal, my Roland D-beam...) without using hands, because I play cittern (a kind of guitar) kick and hi-hat at the same time.
... and my ultimate goal : my cittern is equipped with a divided pickup to remote MIDI. I've imagined "auto-sliding" the didj according to what I play
I'm sure a lot of other applications will be possible, but first the stepper motor needs to be controlled from Usine.
PS : For those who read french and are interested in interactive installations, here is an interesting commercial link (no personal interest):
http://www.interface-z.com/index.htm Usine is present in their compatibility list
woa that sounds a crazy project, very cool, would love to see that in action!!
i didn't knew it was possible to change the key of a didg without changing it's lengh?, is that what you are speaking about by "sliding" is it a telescopic didgeridoo?omg
i didn't knew it was possible to change the key of a didg without changing it's lengh?, is that what you are speaking about by "sliding" is it a telescopic didgeridoo?omg
-
La Tenaille
- Member
- Posts: 547
- Location: Saint Etienne (France)
- Contact:
yep, sliding didgeridoo is built with two tubes.
You'll find a lot of stuff on google if you're curious.
Off course I'll be proud to post a video once it's working
You'll find a lot of stuff on google if you're curious.
Off course I'll be proud to post a video once it's working
woa great, gonna check that, good luck in your project!
Thank you for your reply, Martignasse, I will try to move the code on code::blocks
Ok,
I recompiled everything with MinGW/MSYS compiler(SDK + module) using Code:Blocks and it works,
The dll fits perfectly with my Usine module and dialogue with the control motor card via USB library "libusb-win32.
I recompiled everything with MinGW/MSYS compiler(SDK + module) using Code:Blocks and it works,
The dll fits perfectly with my Usine module and dialogue with the control motor card via USB library "libusb-win32.
whaoo !
fast and great news !
do you think to made this module public...or ?
anyway , this will open new doors again...
fast and great news !
do you think to made this module public...or ?
anyway , this will open new doors again...
When I'm cleaning the code, i could make available the SDK with the module template package for "code::blocks".
Then, for the motor control module, I must first finalize it, and I see with project team if we makes it available.
Then, for the motor control module, I must first finalize it, and I see with project team if we makes it available.
-
martignasse
- Site Admin
- Posts: 611
- Location: Lyon, FRANCE
- Contact:
wow, so you made a code::block project and it compile 'as is'anbd wrote:Ok,
I recompiled everything with MinGW/MSYS compiler(SDK + module) using Code:Blocks and it works,
The dll fits perfectly with my Usine module and dialogue with the control motor card via USB library "libusb-win32.
It's a great great news, good job
and i'm happy that you can continue your very interesting project.
of course, i'm interested in the code::block package
thanks a lot for your work.
Martin FLEURENT - Usine Developer - SDK maintainer
Who is online
Users browsing this forum: No registered users and 127 guests
