From: Francesco <f18...@ya...> - 2010-03-07 19:44:12
|
Hi Frans, 2010/3/4 Frans Schreuder <fra...@gm...>: > Because the way it was, only the gui part was connecting to the programmer, > when the command line interface was invoked, usbpicprog gave a seg fault. Of > course it is also possible to initialize libusb twice, but I think from > hardware is more charming... I've re-tested upp_wx on WinXP and indeed I was able to reproduce the problem recently reported by Mark Jones on a vanilla installation. IMO the best solution in case libusb fails to initialize is to immediately stop the application. That's why I moved libusb initialization back to main.cpp again but this time I made sure that libusb is initialized also when running in console mode. I hope the change is ok for you... Francesco |