FW: BON interpreter GME2000COM.h
GME
GME
Mon Sep 30 17:21:27 CDT 2002
----------
From: Miklos Maroti
Sent: Monday, September 30, 2002 11:21:24 AM
To: 'Peter Volgyesi'; GME Group
Subject: RE: BON interpreter GME2000COM.h
Auto forwarded by a Rule
> > Please refer to the following macro in GME2000COM.h
> > #define COMTHROW(code) { HRESULT e = (code); \
> > if(e != S_OK) { COMVERIFY((##code, e)); throw e; } }
>
> > This macro is being used as follows in ComponentObj.cpp
> > COMTHROW(project->BeginTransaction(terr))
> >
> > When expanded it seems to me that the macro would invoke the function
> > "project->BeginTransaction()" twice, which I don't think is a desirable
> > behavior.
>
> This is "interesting". I do not know, why did we declare COMTHROW this way
> in BON. However, this causes problems only, if a COM methodcall has failed.
That line is mistyped. The ## should be replaced with #, which makes it
a string. It should display "code" in the assertion.
Miklos
More information about the gme-users
mailing list