Delphi 2007 Handbook




Essential Pascal




social web book








October 9, 2007

Delphi 2007 and QuickCam

My Delphi 2007 Update 3 installation didn't let me debug... because of the Logitech QuickCam.

Excerpts of a thread on a (reserved) newsgroup:

My First Message

With RAD Studio 2007 installed under Vista, I cannot run Win32 programs from the debugger. I get various errors including:

BEX exceptions (with vista saying it is closing the program because of DEP),
"failed to initialize application" exceptions,
access violations

The programs run fine if not debugged. At times, but quite rarely, it runs OK also in the debugger. What gives?

Answers (mostly from a single person, who helped a lot)

* "Does disabling DEP solve this issue?" Me: I tried, it did not. Even a disabled UAC did not help...

* "There should be an option in the BIOS to disable DEP system-wide." Me: I didn't dare touch this...

* "Did you install any third-party software recently?" Me: No, but now that I think about it I had problems in the past debugging because of the Logitech Quickcam driver... maybe it is the same problem, even if the error is different this time...

Final Solution

Just to keep anyone interested up to date I did solve the problem. Turns out, the fault was on the Logitech QuickCam software. Delphi got back working as expected as soon as I
removed the Quickcam software.

Needless to say this is very annoying, but the fault is squarely on Logitech, not on CodeGear. I'll try to install an updated version (mine was quite old), and see if it is any better.

BTW, I get the same problem from time to time with earlier versions of Delphi 2007, but in those case the (Vista) error message would hint to the culprit. This time it was just trial and error!





 

6 Comments

Delphi 2007 and QuickCam 

 I would be interested to know how QuickCam would 
interact with your delphi Win32 apps without them 
explicitly loading them.

Normally you would need to invoke directshow or VfW 
to even get the QuickCam loaded into your win32 chain.

I would be suspicious that something else was also 
involved in this whole deal.
Comment by C Johnson on October 10, 03:18

Delphi 2007 and QuickCam 

C Johnson, 

in the past I had noticed the problems was with a "a
particular DLL called LVPrcInj.dll". I found this in
an unrelated newsgroup post. Actually Joost doesn't
work either, and other programs. Here is a comment
I've found:

"This DLL by Logitech appears to be associated with
the Video Effects feature of certain Logitech webcams,
including - but not limited to - Logitech QuickCam
Pro 5000, Logitech QuickCam Orbit MP, Logitech
QuickCam Fusion and Logitech QuickCam for Notebooks
Pro.  For some crazy reason Logitech decided this DLL
should inject itself into basically everything it can.
 This DLL also causes problems to other applications
like Alcohol 120% (and no doubt many more)."

Search on Google for:  "quickcam inject dll" and that
was the first link...
Comment by Marco Cantù [http://www.marcocantu.com] on October 10, 10:28

Delphi 2007 and QuickCam 

FWIW even Windows itself has these problems with QuickCam.

Sometimes I have to unplug my Orbit Sphere MP before
boot or Windows will hang during boot.

Logitech's software makes D2005 look good.
Comment by Anders on October 15, 22:39

Delphi 2007 and QuickCam 

I'm having this problem too, unsolved :(
If I install (even the last version) QuickCam Pro
Delphi 2007 debbuger stops working.
Anyone can solve this "big" trouble?
Thanks
Comment by Marco Giacinti on December 30, 16:22

Delphi 2007 and QuickCam 

I have the same problem now. So I'm going to remove
the quickcam software.

Thanks Marco for this post, it has been very useful.
Comment by Fabrizio Bitti [http://www.fabriziobitti.it] on January 12, 11:02

Delphi 2007 and QuickCam 

I had the same problem, after uninstall the QuckCam 
Software, Delhi works fine. I had an simillar problem
in the past. After install a tool for a ATI-
Graphiccard, the CodeInsight does not work.

sorry for my bad english!

Joachim
Comment by Joacim Persike on February 12, 08:40


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.