Re: How to pass arguments to a CreateThread(...)



"Joao Rego" <JoaoRego@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:74A16FC9-2124-4207-8359-95E221C32F2D@xxxxxxxxxxxxx
> Thanks for the example, I implemented it but in run time it gets an
> error in line 2 of
> MyThreadFuncion(...)
> {
> ...
> CComGITPtr<ICMyCOMClasse> gitPtr(gitCookie);
> ...
> }
>
> the error is altbase.h line 4577:
> Expression:((HRESULT)(hr)>=0)
>
> in altbase.h...
> 4555: CComPtr<T> spT;
> 4556: HRESULT hr = CopyTo(&spT);
> 4557: ATLASSERT(SUCCEEDED(hr));
> ...

For some reason, retrieving a pointer from GIT cookie failed. What's the
value of HRESULT at the point of failure? Did you use my code exactly as
shown, or have you perhaps omitted something? Is there marshalling
support for your interface?
--
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: Initial Value of m_lRefCount (1 or 0)
    ... >> interface, possible know which way it's done? ... E.g. the class factory, or the method on another object that ... > Igor Tandetnik ... > With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.win32.programmer.ole)
  • [BUG] panic 2.6.20-rc3 in nf_conntrack
    ... When I shut down my ppp0 interface the kernel ... This kernel had the ipp2p patch from patch-o-matic-ng applied, ... # Firmware Drivers ... # ACPI Support ...
    (Linux-Kernel)
  • Isa/i2c [bug report]
    ... 00:00.0 Host bridge: VIA Technologies, ... 00:07.1 IDE interface: VIA Technologies, ... Master IDE ... # ACPI Support ...
    (Linux-Kernel)
  • [2.6.25-rc2] e100: Trying to free already-free IRQ 11 during suspend ...
    ... ACPI: Preparing to enter system sleep state S3 ... Interface is unused normally. ... Enabling unmasked SIMD FPU exception support... ... audit: initializing netlink socket (disabled) ...
    (Linux-Kernel)
  • Re: Poisons question
    ... the problem of my buttons on my interface would fade until they are ... Ever work in customer service? ... satellite TV company, and when provided tech support for customers, ... I'm not saying Blizzard's tech support is the greatest, ...
    (alt.games.warcraft)