Re: Global Interface Table Problem.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dinesh Venugopalan <dinesh@xxxxxxxxxxx> wrote:
The problem I am facing is this.
Lets say we have 2 IE window A and B. Where A is the
primary window and B is create by doing "file" -> "new" on A.

If the pointers are created in A and if I close A and record in B my
GIT queries work properly.
But if I create pointers in B, close the B window and record in A.
GIT query fails and returns the error values as 0x80070057 which
translates to "The parameter is incorrect".

The apartment (thread) in which the COM object was created is dead, and
the object died with it.

Personally, I'd not use a COM object in this scenario at all. Why not
just implement a regular C++ class in your DLL? Or perhaps a COM-like
object, but don't use COM mechanisms for creting and managing it. Just
make the object thread-safe and share it directly in a global variable.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Netzero version QS 7.3 changed my default resizing pointers for IE 6.0.28 and I cant restore th
    ... > I installed Netzero version QS 7.3 as a trial a few days ago. ... > size of the IE window to fit beneath the ad bar. ... > The correct resizing pointers show for all other applications. ... > vertical resize pointers that I have specified in Control ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Can Excel do this with coding?
    ... window to document relevant information. ... with the appropriate client based upon the row where that button was (to ... I don't have much of a coding background, but I've seen coding to some ... will also need a series of free-space pointers. ...
    (microsoft.public.excel.worksheet.functions)
  • Netzero version QS 7.3 changed my default resizing pointers for IE 6.0.28 and I cant restore them t
    ... I installed Netzero version QS 7.3 as a trial a few days ago. ... I terminated Netzero and it left my IE default window size as it had ... The correct resizing pointers show for all other applications. ... vertical resize pointers that I have specified in Control Panel;Mouse;Mouse ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Thread Proc Parameter
    ... When I need the handle of a window to post messages to it, ... worker thread (It may or may not mess up the thread running the window, ... you need the other thread to do, and avoid the risk all together. ... Passing pointers to the objects between threads won't cause problems by ...
    (microsoft.public.vc.mfc)