473,805 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Allocation Conflict Error

Hi,
I have a class in one DLL. Something like this:
class CLASS1
{
MyData* pData;
CLASS1()
{
pData = NULL;
}
Load()
{
pData = new MyData;
}

~CLASS1()
{
if (pData)
pData = delete pData;
}
}
Then in another DLL.
I have
CLASS1 myClass;
myClass.Load();
....
For release build, in boundscheker, I got this error message at the
destructor of CLASS1 (pData = delete pData;)

Allocation Conflict: Attempting to call global_operator _delete on
pointer 0x322E5D8, that was allocated by HeapAlloc.

Why the "new" was using HeapAlloc while the "delete" use
"global_operato r_delete"(defin ed in afx.inl)?

Thanks!
Jul 19 '05 #1
1 3198
On 31 Oct 2003 11:41:06 -0800, si*******@hotma il.com (Majuer) wrote in
comp.lang.c++:
Hi,
I have a class in one DLL. Something like this:
class CLASS1
{
MyData* pData;
CLASS1()
{
pData = NULL;
}
Load()
{
pData = new MyData;
}

~CLASS1()
{
if (pData)
pData = delete pData;
}
}
Then in another DLL.
I have
CLASS1 myClass;
myClass.Load();
...
For release build, in boundscheker, I got this error message at the
destructor of CLASS1 (pData = delete pData;)

Allocation Conflict: Attempting to call global_operator _delete on
pointer 0x322E5D8, that was allocated by HeapAlloc.

Why the "new" was using HeapAlloc while the "delete" use
"global_operato r_delete"(defin ed in afx.inl)?

Thanks!


Ask in a Windows programming newsgroup. None of DLL, HeapAlloc, or
global_operator _delete are defined by C++, they are all Microsoft
specific.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Jul 19 '05 #2

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

Similar topics

3
2169
by: Fardude | last post by:
I have a few tables in SQL Server 2000 and a small Access 97 that has linked tables used to insert/update/delete into SQL Server 2k tables. Everything works fine except Updating one of these table through Access, I get "Write conflict error" which basicaly says since you have updated this record some other user has updated it. I know for sure this is not True, becuase noone else has access t this database. This does not happen to any...
0
2338
by: Smriti Dev | last post by:
Hi, I have a ms access table table which is linked to a mysql database table. I have used a ms access form to edit records. However, when I attempt to edit a record I get a write conflict error in ms access. I am using MS ACCESS 2002. The error is 'the record has been changed by another user since you started editi it. If you save the record, you will overwrite the changes the other user made'. The Save record button is greyed out so I...
0
1430
by: manning_news | last post by:
Using A2K. I've got a form for clients that has a subform that is a cartesian product between client ID and a lookup table for types of income. So each client has the exact same number of income type records. If the user changes the name of an income type for a client then I want the change to happen automatically for all clients. I have a one-to-many relationship set up between the client table and the lookup table with cascading...
3
3907
by: rivka.howley | last post by:
I recently added some code to the BeforeUpdate event of a text box on a form. The code uses the new value in the text box to recalculate some values in another table, which is shown in a subform on this form. Since I've added the code, I get a Write Conflict error - "This record has been changed by another user..." This typically does not happen the first time I edit this text box after I open the form, but on every subsequent time. ...
21
28053
by: Peter Nurse | last post by:
I have just upgraded to SQL Server 2005 from SQL Server 2000. In Microsoft SQL Server Management Studio, when I click on database properties, I receive the following error:- Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. (Microsoft SQL Server, Error: 468)
1
4034
by: S.Dickson | last post by:
I have a database with access as front end and Mysql as back end. I am gettting the following 'Write Conflict' Error. when i am on my order form, This form does has a subform where i enter all the products that are ordered. Could any one let me know what could cause this problem. I am the only one using the database as its still in the build stage Thanks
2
2379
by: mrsgwen90 | last post by:
I am trying to update a record using access as the front end and VB 6.0 as the backend. I am using a SQL statement to accomplish this. But I am getting the "Write Conflict Error". I have tried adding the 'Timestamp field as someone suggested but that isn't working. Here is my code. Please advise Private Sub cmdAddRec_Click() On Error GoTo Err_cmdAddRec_Click Dim rstTrans As New ADODB.Recordset Dim fld As ADODB.Field Dim strField As...
3
3564
by: gazsharpe101 | last post by:
Hi everyone, I am doing some work on my company's database. It is a MS Access 2003 front-end with an SQL back-end. Recently, I have asked the database administrator to add some new fields to an existing table and two of them are yes/no fields. When I have tried to update these fields, it comes up with a 'Write Conflict' error message and I can only choose 'Copy to clipboard' or 'Drop changes'. But either way, my changes do not get...
1
2527
by: Ryan Swaby | last post by:
I have an access form that is bound to an ado recordset using the following code in the form open event. Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Use the ADO connection that Access uses Set cn = CurrentProject.AccessConnection 'Create an instance of the ADO Recordset class, and
0
10360
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.