News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Hung Taskbar

Started by oex, April 23, 2011, 10:26:06 AM

Previous topic - Next topic

oex

I have a console application in XP which works just fine however when I try and open a folder on the taskbar the taskbar hangs until I quit the application.... I have noticed this problem before with other things (I cant remember a specific example off the top of my head however) but does anyone know why this happens?

It doesnt appear to happen with all my console applications so I'm guessing maybe it is something like not releasing a handle to something....

It is to some degree lazyness that I'm asking this, it's not a major problem for me however I'm guessing it might have happened to someone else also :lol.... If I notice why I'll update my post :bg

OK I see why I think.... It seems to have something to do with my webcam ::)....
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

qWord

random shot: there is some nasty explorer plugin that hung up
FPU in a trice: SmplMath
It's that simple!

oex

The taskbar hangs when I call capCreateCaptureWindow everything else works fine....

invoke capCreateCaptureWindow, 0, 0, 0, 0, 320, 240, hwnd, 0

It does return a hwnd ok
http://msdn.microsoft.com/en-us/library/dd756879(v=vs.85).aspx

The taskbar is fine until I right click on a "toolbar folder" (ie Quicklaunch Folder) and try to open it, this doesnt affect switching between windows/using the start menu etc etc or even clicking on a quicklaunch item itself.... Simply to right clicking and opening such a folder....
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

dedndave

Peter,
if you go to the link you posted, and read the Community Content...
it does not appear to wrok on win 7 64 at all
i would try to find some other way to do it   :P
sounds to me like a buggy function

MichaelW

What import library are you using?
eschew obfuscation

oex

avicap32.dll directly.... I cant use the lib that is included with masm32 v10 as (from memory) I dont have msvfw32.dll....

There is another way to do it using DirectShow.... This however requires COM and I dont like COM :lol.... There is an example on the forum I found the other day by Coma which looks reasonably complete and I am acutely aware that my api days are numbered however I'm determined to stick it out for as long as possible :lol....

http://www.masm32.com/board/index.php?topic=14750.0

I see you have written something about this here Michael however it's a bit of a tongue twister I will read it a few more times for it to sink in.... The question I immediately ask to that is.... What compatability issues are there with other windows versions other than XP?
http://www.masm32.com/board/index.php?topic=6315.msg47049#msg47049

I also have VC6 version of the lib.... is this one better to try?

Finally whatever version of the lib I try unless there is another dll with the same function I expect there will still be this problem with the function call?
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

baltoro

:eek What does your houseboy think ??? :eek
...Ok,...just kidding,...but, I would avoid COM in assembly,...it's just too excruciatingly painful,...and, almost impossible to debug psychically,...
:eek Damn, you know, if I wasn't actually lazier than you, you could just e-mail me with an Executive Directive,... :eek
Baltoro

oex

Quote from: baltoro on April 23, 2011, 07:37:41 PM
:eek What does your houseboy think ??? :eek

He's no-where to be found.... If anyone sees him let me know.... :bg


(That's agency workers for you.....)
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

MichaelW

Quote from: oex on April 23, 2011, 01:51:57 PM
I see you have written something about this here Michael however it's a bit of a tongue twister I will read it a few more times for it to sink in.... The question I immediately ask to that is.... What compatability issues are there with other windows versions other than XP?
http://www.masm32.com/board/index.php?topic=6315.msg47049#msg47049

I have no way to test beyond Window XP.

Since that time I have found a (surprisingly easy) way to create an import library that imports from all three DLLs. But this is yet another project that I have not completed. The attachment contains what I have.

QuoteFinally whatever version of the lib I try unless there is another dll with the same function I expect there will still be this problem with the function call?

I think probably, but it's impossible to know without seeing/testing the code. I included a minimal test app in the attachment, but having no capture devices or drivers it's like composing music on an air guitar.
eschew obfuscation

oex

Thank you for your input Michael.... I have downloaded your post and will go through it in detail.... Brain dumps like this are generally most revealing but also best read in multiple sessions I find :lol....

The webcam is frustratingly backwards and DirectX/COM oriented with the API being seriously depreciated however I dislike using COM as it has no actual basis in any reality besides a fixed calling structure for 'production line' coding :lol....

I have looked a little deeper but being as there are so many models of cameras with so many differently formated inputs it's like strapping on a suicide vest diving to about 50 meters in the middle of the Atlantic Ocean and blowing myself up....

Still your input does help immensly and I'm replying before I drown in a festering swamp of MSDN possibilities and impracticalities :lol.... Once (if) I successfully decipher your higher thinking I will let you know of my results :bg.... As a world class air guitarist (Just a part time hobby alongside golf and software engineering) I am confident I'll work something out :U
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv