Stickies
« Zbar hangs when debugging an app »

Welcome Guest. Please Login or Register.
Jul 23rd, 2017, 11:54am


Click to go to the
Zhorn Software Web Site
Click to go to the
Knowledgebase

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Zbar hangs when debugging an app  (Read 1142 times)
jdunne525
New Member
Image


member is offline

Avatar




PM


Posts: 9
xx Zbar hangs when debugging an app
« Thread started on: Dec 18th, 2013, 10:20am »

This has plagued me for some time now and I finally figured out how to reproduce it. Here's the setup:

1. Start with ZBar not running.
2. Open up Visual C# (I'm using the 2008 express edition, but I doubt it matters).
3. Create a new Windows Forms application.
4. Click the debug button to run the empty form.
5. Move the empty form onto the second monitor that ZBar will reside on.
6. Click the Pause button in visual studio.
7. Launch Zbar.... ZBar hangs until visual studio resumes. I'm guessing you need a timeout on some API call in there.. Should be pretty easy to track down.

The same thing happens if ZBar is running the whole time and you remote desktop to the machine with a single monitor, then exit the remote session and log in locally.


I saw the recent conversations about open sourcing the app, and I'm all for it. I sincerely hope this application continues to live on as I find it to be fantastic. I'm surprised it doesn't have a larger following than it does.

Joe
User IP Logged

Tom Revell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 3542
xx Re: Zbar hangs when debugging an app
« Reply #1 on: Dec 18th, 2013, 5:26pm »

Hi,

Would you mind trying the zip at:

http://www.zhornsoftware.co.uk/zbar/zbarto.zip

I've replaced some SendMessage calls with SendMessageTimeout (it's the ones which get the icon which seem to cause the trouble) and the problem is solved here at least.

You can see this problem whenever any app has stopped responding, and I've seen it from time to time and thought about how I should get to looking at it. It takes a little nudge occasionally to get that done :)

Tom
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls