Pass by reference in C++ cause compiler to GPF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to pass a reference of a managed object to a function (bar). I
believe the syntax is correct. When I build the project, a message box with
the title "Microsoft (R) C/C++ Optimizing Compiler" displays indicating that
a GPF has occurred.

Is this a compiler bug?

Sample Code:
class foo
{
....
bool bar(System::Data::DataSet^% ResultSet);
};
 
Benny said:
I need to pass a reference of a managed object to a function (bar). I
believe the syntax is correct. When I build the project, a message box with
the title "Microsoft (R) C/C++ Optimizing Compiler" displays indicating that
a GPF has occurred.

Is this a compiler bug?

Sample Code:
class foo
{
...
bool bar(System::Data::DataSet^% ResultSet);
};

Anything which makes the compiler die is a compiler bug, IMO.

I suggest you report it on
http://lab.msdn.microsoft.com/productfeedback/
 
Hi,
Welcome to MSDN Newsgroup!

In the current situation, please help us confirm some information on your
side:
1.What's the version of complier, VS2003 or VS2005?
2.Would you provide us a simplified sample to repro this problem? It will
help us get closer to this issue.

Please rest assured that we will do our best to support you. Thanks for
your understanding!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
 
Back
Top