473,569 Members | 3,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CRecordSet and CString issue in .NET

Environment : WinXP SP2, .NET 2003 Std edition

I posted a query to the group some days back asking about how to identify
stack corruption / array bounds or buffer overruns using .NET compiler
switches. (E.g. /RTC1)
The switches work fine for the sample programs that I wrote, but in my
actual scenario it doesnt give any dumps or results in the output file. So I
am unable to find if there is actually any stack / buffer overrun.

The app used to work fine when built under VC6.0.

I am trying to use a class derived from CRecordSet. In my class I have a
CString field (RFX) variable called m_szLink. During my code flow, after
CDatabase::Open , when I see the record set object in Quick Watch, I see all
the data members proper. But when I try to access the string member like:

CString str = pRecSet->m_szLink

I am getting a crash. It is crashing only if I access a RFX (field exchange)
variable but not any other member of the class.

It finally crashes in the line IAtlStringMgr* pNewStringMgr =
pData->pStringMgr->Clone(); inside the function :
static CStringData* __cdecl CloneData( CStringData* pData )
in the file "atlsimpstr .h".

Is there any known issue of CRecordSet and accessing field variables, under
..NET?

I am using _un_managed C++.

Sena

--
~~~~~
For replying directly to me, please remove the 'nospam' from my email id as
it appears
Nov 17 '05 #1
0 1083

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

Similar topics

0
2416
by: Chris | last post by:
Hi all, Just converted our 95 project workspace file from VC++ 6.0 to .NET, and things have gone...um...pretty well. Down to the last of the suffering - our main server application is doing something completely bizarre when compiling. All of our applications use MFC, and this one in particular is a console application - however, we have...
4
1714
by: Mike van Engelen | last post by:
If I want to add a new derived class of the CRecordset type then it does not appear in the classes list, which I used to have before. The CDatabase class, for example, is available. Does anyone has any idea how this is possible? Of course I can make the class manually but I am too lazy for that.... Thanks for your replies! Mike
0
1275
by: GS | last post by:
Hi Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Desktop Engine on Windows NT 5.1 (Build 2600: Dodatek Service Pack. 1) and MDAC2.8, VC7 -------------------------------------------------------------------------- CREATE PROCEDURE .
1
1037
by: Jim Walsh | last post by:
I am transitioning to Visual Studio 2003 .NET. To get started, I am converting an existing application that I built using VS 6.0 C++ to C++ .NET. My application uses a CRecordset-derived class to bind to columns in an Excel spreadsheet. I used VS 6.0 ClassWizard to create this class and bind the columns to class variables. The...
6
3094
by: ATS | last post by:
INF: Has anyone made a CString, sprintf, and sscanf for .NET? Please help, I want to code with PURE .NET (i.e. pure CLR). No MFC, No ATL, no C-Run Time Library. But I want CString, sprintf, and sscanf. The "String" class in .NET is completely worthless to me, especially its so called "Format" method. In fact to just, harp on how...
0
824
by: Alfonso Morra | last post by:
Hi, I am storing data in a custom format (binary files on disk). I read the data which is essentially a 2D table - similar to a Db table. My question is that, is it possible to create a CRecordset object using this data. I remember reading about "disconnected recordsets" a while back. I will like to be able to do this so that I can feed...
1
1865
by: Mike C# | last post by:
Hi all, I'm writing a little app that uses ODBC to call a SQL 2K stored procedure several times in a loop, with a different parameter each time. The SP can return no results in some instances. When no results are returned, the CRecordset throws an exception. I've tracked the problem down to dbcore.cpp, where the CRecordset::Open method...
0
987
by: chankokchern | last post by:
chankokchern wrote: Code: -------------------- -------------------- Problem solved
4
5606
by: sebastian.dau | last post by:
Hello Newsgroup, I have a link error that I did not manage to fix. I basically consume a VC 8.0 C++ dll that exports a class with a method containing CString declaration as follows: class WarnErr { //...
0
8138
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...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7983
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...
0
6290
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...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
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
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
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...

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.