Hi Andy;
Thanks for all, it works... :)))
hi, i had the same problem.
The reason is non-zero initialization of the event-data
structurs ( strange Bug! ).
I solved it with a workaround.
Knowing that the event-data is 'behind' the last explizit
data member,
do this in every constructor:
{
size_t cSize = offsetof( class CMyClass, m_last );
cSize += sizeof( m_last );
memset( ((char*)this) + cSize, 0, sizeof( class MyClass ) -
cSize );
Quote:
>-----Original Message-----
>Hi;
>When try to raise an event, gets error with following
codes;
>[
> event_source(native)
>]
>class CChMIBTreeCtrl : public CTreeCtrl
>{
> DECLARE_DYNCREATE(CChMIBTreeCtrl)
> __event void MyEvent();
>..
>..
>..
>};
>..
>..
>..
>void CChMIBTreeCtrl::OnNMClick(NMHDR *pNMHDR, LRESULT
*pResult)
>{
> try
> {
> __raise MyEvent();
> }
> catch (...)
> {
> }
>}
>Why ?.... Anybody will help ?
>Thx.
>--
>Devinim T?LEN
>IS Technology Services Manager
>Global Bilgi Paz., Dan. ve ?aery Servisi Hiz. A.T.
>Fatih C. Dereboyu S. No:8 34660 Halkaly-Ystanbul/Trkiye
>GSM : +90 (532) 555 5500
>Tel : +90 (212) 473 2020
>Fax : +90 (533) 981 4683
>.