473,387 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Deleting Int32?

I'm reading page 40 of "Managed .NET and C++ Development" by Stephen Fraser
and it says:

"Managed C++ value types default to being garbage collected when defined as
pointers, wheras traditional C++ data types don't. Because this is the case,
pointers that you allocate using int need to be deleted."

But isn't int just an alias for Int32???

Rasika.
Nov 17 '05 #1
5 1049
Rasika WIJAYARATNE wrote:
I'm reading page 40 of "Managed .NET and C++ Development" by Stephen Fraser
and it says:

"Managed C++ value types default to being garbage collected when defined as
pointers, wheras traditional C++ data types don't. Because this is the case,
pointers that you allocate using int need to be deleted."

But isn't int just an alias for Int32???

Rasika.

Not for the purpose of creating a pointer to it in the 2002 and 2003
release.

an int* == int __nogc *
and an Int32* == int __gc *

Ronald Laeremans
Visual C++ team
Nov 17 '05 #2
Ronald,

Thank you for the information. So it is different in 2005?

Im very new to MVC++. Is there a place I can get more information about the
2005 release's differences from 2003?

Rasika.

"Ronald Laeremans [MSFT]" wrote:
Rasika WIJAYARATNE wrote:
I'm reading page 40 of "Managed .NET and C++ Development" by Stephen Fraser
and it says:

"Managed C++ value types default to being garbage collected when defined as
pointers, wheras traditional C++ data types don't. Because this is the case,
pointers that you allocate using int need to be deleted."

But isn't int just an alias for Int32???

Rasika.

Not for the purpose of creating a pointer to it in the 2002 and 2003
release.

an int* == int __nogc *
and an Int32* == int __gc *

Ronald Laeremans
Visual C++ team

Nov 17 '05 #3
Rasika WIJAYARATNE wrote:
Ronald,

Thank you for the information. So it is different in 2005?

Im very new to MVC++. Is there a place I can get more information about the
2005 release's differences from 2003?

Rasika.


This is a great starting point specifically for the lanaguage changes
from Managed Extensions in 2002 and 2003 to the .NET support in 2005:
http://blogs.msdn.com/slippman/archi...21/218487.aspx

Ronald
Nov 17 '05 #4
Great, thanks for all your help.

"Ronald Laeremans [MSFT]" wrote:
Rasika WIJAYARATNE wrote:
Ronald,

Thank you for the information. So it is different in 2005?

Im very new to MVC++. Is there a place I can get more information about the
2005 release's differences from 2003?

Rasika.


This is a great starting point specifically for the lanaguage changes
from Managed Extensions in 2002 and 2003 to the .NET support in 2005:
http://blogs.msdn.com/slippman/archi...21/218487.aspx

Ronald

Nov 17 '05 #5
Great, thanks for all your help.

"Ronald Laeremans [MSFT]" wrote:
Rasika WIJAYARATNE wrote:
Ronald,

Thank you for the information. So it is different in 2005?

Im very new to MVC++. Is there a place I can get more information about the
2005 release's differences from 2003?

Rasika.


This is a great starting point specifically for the lanaguage changes
from Managed Extensions in 2002 and 2003 to the .NET support in 2005:
http://blogs.msdn.com/slippman/archi...21/218487.aspx

Ronald

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
6
by: Mark | last post by:
I get an error message when deleting rows from a table in Access database. My understanding is that the error message relates to the sharing of the Inetpub and the wwwroot directory. While I...
4
by: Mark | last post by:
Not sure this is the right place for this questions, but here goes: I get an error message when deleting an table from a Access database. The code is as follows and the error message is after...
1
by: jez123456 | last post by:
Hi, I have a windows form with a listbox control. My code all works correctly when deleting an item from the listbox except the last item. I get the following message when trying to delete the...
2
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
0
by: Mike P | last post by:
When you specify updateparameters or deleteparameters for your gridview, I was under the impression that whether or not you write some code in the rowcommand event to deal with this, the update or...
0
by: Wannabe | last post by:
I have been trying to figure this out for days now...can someone please help? I am using ASP.Net 2.0 and have a gridview on my page. I have everything working except the delete command. The page...
3
by: dhaneshrs | last post by:
I have a gridview i managed to update using the edit option in the smartmenu. The problem comes when i delete a value or make a value read only. Say i have a table Employee with the following...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.