|
I'm hosting MSHTML in an Explorer bar, and a specific Web page is causing a crash in MSHTML. No other page has done that for me. I'm trying to figure out why it's happening, but I can't make sense of the call stack. MSHTML is hosted with a download control which should be preventing dynamic content from being displayed/executed, so it's curious why the call stack appears to be attempting to process some window message. Or maybe not. Any pointers? Thanks!
Here's the call stack I obtained from VS.NET:
> MSHTML.DLL!CElement::BecomeCurrent() + 0x50
MSHTML.DLL!CElement::BubbleBecomeCurrent() + 0x61
MSHTML.DLL!CMarkup::NavigateHere() + 0x47e69
MSHTML.DLL!CTaskLookForBookmark::OnRun() + 0x42
MSHTML.DLL!CTask::TaskmanRunTask() + 0x34
MSHTML.DLL!CTask::TaskmanRun() + 0xb1
MSHTML.DLL!CTask::OnTaskTick() + 0x5
MSHTML.DLL!GWMouseProc() - 0x1f0a99
MSHTML.DLL!GlobalWndProc() + 0xf9
user32.dll!_InternalCallWinProc@20() + 0x1b
user32.dll!_UserCallWinProcCheckWow@32() + 0xb7
user32.dll!_DispatchMessageWorker@8() + 0xd8
user32.dll!_DispatchMessageW@4() + 0xb
ole32.dll!CDllHost::STAWorkerLoop() + 0x69
ole32.dll!CDllHost::WorkerThread() + 0xd6
ole32.dll!DLLHostThreadEntry() + 0x9
ole32.dll!CRpcThread::WorkerLoop() + 0x1e
ole32.dll!CRpcThreadCache::RpcWorkerThreadEntry() + 0x1a
kernel32.dll!_BaseThreadStart@8() + 0x37
I have a similar call stack from WinDbg:
# ChildEBP RetAddr Args to Child
00 0b4efbc0 6363aed8 00000000 0b4efbfc 00000000 mshtml!CElement::BecomeCurrent+0x77 (FPO: [Non-Fpo])
01 0b4efc00 636d13db 00000000 00000000 00000000 mshtml!CElement::BubbleBecomeCurrent+0x81 (FPO: [Non-Fpo])
02 0b4efca4 6373deba 00000000 08ebef24 00000000 mshtml!CMarkup::NavigateHere+0x39d (FPO: [Non-Fpo])
03 0b4efcc8 636b1c42 00336b8f 08e88380 00000064 mshtml!CTaskLookForBookmark::OnRun+0x42 (FPO: [Non-Fpo])
04 0b4efcd8 636b1bf6 08e88380 00336ac7 08e8c400 mshtml!CTask::TaskmanRunTask+0x34 (FPO: [3,0,2])
05 0b4efcfc 636b1b40 63581dc7 63677b41 000003e8 mshtml!CTask::TaskmanRun+0xe4 (FPO: [Non-Fpo])
06 0b4efd00 63581dc7 63677b41 000003e8 63581d1d mshtml!CTask::OnTaskTick+0x5 (FPO: [2,0,0])
07 0b4efd0c 63581d1d 000503a0 00002000 0b4efeac mshtml!GWMouseProc+0x115 (FPO: [2,0,0])
08 0b4efe38 77d43a50 000503a0 0000033d 00002000 mshtml!GlobalWndProc+0x193 (FPO: [Non-Fpo])
09 0b4efe64 77d43b1f 63581c24 000503a0 00000113 USER32!InternalCallWinProc+0x1b
0a 0b4efecc 77d43d79 00000000 63581c24 000503a0 USER32!UserCallWinProcCheckWow+0x150 (FPO: [Non-Fpo])
0b 0b4eff2c 77d43ddf 0b4eff50 00000000 771c97df USER32!DispatchMessageWorker+0x306 (FPO: [Non-Fpo])
0c 0b4eff38 771c97df 0b4eff50 00000000 00000000 USER32!DispatchMessageW+0xb (FPO: [1,0,0])
0d 0b4eff6c 771daf11 77e7a5a2 00007530 0a1297f8 ole32!CDllHost::STAWorkerLoop+0x5a (FPO: [Non-Fpo])
0e 0b4eff8c 771dae38 771e71a8 772bb908 771b0000 ole32!CDllHost::WorkerThread+0xda (FPO: [Non-Fpo])
0f 0b4eff90 771e71a8 772bb908 771b0000 0a1297f8 ole32!DLLHostThreadEntry+0x9 (FPO: [1,0,0])
10 0b4effa8 771e7207 00221e50 7b1b0b33 77e7d33b ole32!CRpcThread::WorkerLoop+0x1e (FPO: [EBP 0x0b4effec] [0,0,4])
11 0b4effb4 77e7d33b 0a1297f8 00221e50 7b1b0b33 ole32!CRpcThreadCache::RpcWorkerThreadEntry+0x1a (FPO: [1,0,2])
12 0b4effec 00000000 771e71ed 0a1297f8 00000000 kernel32!BaseThreadStart+0x37 (FPO: [Non-Fpo])
|
|
|
|
|
Hi, i´m having some problems to install a lsp on a Windows NT 4 Service Pack 6.
It´s Fail at WSCInstallProvider(...)
The Strange Thing is that LSP is working fine on Windows 2000, and Windows XP.
I Didn´t find any changes (prototype or argument numbers) related with this function.
Somebody here knows what could be happening ?
Thanks,
Victor
|
|
|
|
|
Hello
I want To Get The Folder Of My Application , The folder My .Exe File placed there.Buf with out using GetCurrentDirectory if Posible.
Iman Ghasrfakhri
|
|
|
|
|
GetModuleFileName should do the trick for you
"You know "that look" women get when they want sex? Me neither."
--Steve Martin
|
|
|
|
|
thancks alot
Iman Ghasrfakhri
|
|
|
|
|
I have a system tray icon that displays a menu when you right click on it, but it doesn't disappear when you click elsewhere on the screen.
To make it disappear you have to click an item on the menu.
Does anyone know why this is happening?
Thanks
|
|
|
|
|
How are you responding to the right-click?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
pSubMenu->TrackPopupMenu(0, pos.x, pos.y, pMainWnd, NULL);
|
|
|
|
|
What happens if you specify TPM_LEFTALIGN as the first parameter?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
It doesn't seem to do anything, and even if it does it doesn't help.
Any other ideas?
Thanks
|
|
|
|
|
I had exactly the same problem a while ago. Search the microsoft knowledge base for Q135788 to get
the explanation.
...Create menu hMenu...
SetForegroundWindow(hWnd);
BOOL nReturn = TrackPopupMenu (hMenu, TPM_NONOTIFY | TPM_RETURNCMD | TPM_LEFTBUTTON, pt.x, pt.y, 0, hWnd, NULL);
PostMessage(hWnd, WM_NULL, 0, 0);
Iain.
|
|
|
|
|
I'm trying to localize a Windows installer package (.msi) built with VS.net 2003. I followed the steps written in MSDN.
However, only the "Preparing to install" dialog is displayed in the localized language, the rest of the installer is still in English. The language/codepage ID's seem to be OK, the localized strings are also in the MSI.
Have anyone ever met this problem? Any tips?
|
|
|
|
|
Hello, I need to merge cells (2,2) and (2,3) in a word document doing word automation with visual c++.
It makes two weeks that I am trying to do this and I haven`t got any results.
Thanks
|
|
|
|
|
I have an algo which takes in an iterator range like Func(I beg, I end).
These are randomaccess iterators so I can do stuff like beg[i] which gives me back the ref to the ith element of the underlying container:
T& t = beg[i].
Now inside the algo I want to swap the contents of say beg[i] and beg[j], and all I have info about is the range. I dont have any info about the type T within my algorithm.
However to do a swap I need a temporary variable to store one of the values :
T& temp = beg[i];
beg[i] = beg[j];
beg[j] = temp;
However, as I said, theres no info on T coming into the algo, so how would I swap the contents using these randomaccess iterators since I very well cant define a 'temp'?
thanks,
ns
|
|
|
|
|
and why you don't use std::swap() ?
Robert-Antonio
"A flower walked around a meadow. She saw a beatiful human and plucked off his head."
|
|
|
|
|
|
T& was your problem. Make it T. But std::swap is better anyways.
John
|
|
|
|
|
std::swap was good.
But see, I couldnt use anything to do with T within my generic algo which has signature Func(I beg, I end), since only the range is coming in, not the type in the container.
Thanks,
ns
|
|
|
|
|
I see. You must make your algorithm a template function to do this.
template<class T>Func(I beg,I end)
John
|
|
|
|
|
You should've posted this link into the general section, as people use other programs than VC++ to code DirectX and Win32 applications as well. As you posted it here, it may be overlooked by some members who don't read this subsection of the forums.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Is there method to set DeviceCaps so as if system font changed?
System font changed and all sized in a dialog too,
but I want that all sized remained same,
is it possible to make by some CDC tune or
font Dialog or else change?
(Remaining system font changed)
thanks.
|
|
|
|
|
Maybe it's the language barrier, but what exactly are you asking?
Are you wanting to change the system font?
Are you wanting to know when the system font changes?
Something else?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Sorry for not good language,
(around people was preventing me from better check, sorry,
but I will try to write better nonetheless)
System font changed by yser,
but in my CDialog I want font at screen remains not changed,
the main purpose- control's distances remains not changed,
due to they are rendered according to system font.
For this purpose is need to chnge something at CDialog.
Is it only font?
It is roughly changed - not with decimal digits as system font.
So precise in control rendering is lost.
Or I can change spme DC properties?
|
|
|
|
|
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? I'm sure this is possible, but it totally goes against good design. The user should be able to configure their system (e.g., fonts, colors, sizes, sounds) and all applications should reflect those changes.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Bitmaps are pixel- based,
and if you want to combine Dialog controls with pixel based controls you
get either big work with it to resize pixels,
to make picture seems correct - that's main benefit.
or just by compensating font,
you can get same without big work.
Design- is agreement between concrete user and developer as sailer of system,
and additional tune is good but cost, but may fully not in need.
Or user especially want to have system untuned, due to they pay for it.
___________
You wrong - in consideration that design is feature.
"design is not feature"
___________
fascists made you joke so easily, to deceve people -
that the are not fascists really! (behind the scene, they carve people)
Be careful !!
|
|
|
|