473,508 Members | 2,032 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 1078

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

Similar topics

0
2408
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...
4
1707
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...
0
1273
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)...
1
1036
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...
6
3081
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,...
0
817
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...
1
1858
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. ...
0
981
by: chankokchern | last post by:
chankokchern wrote: Code: -------------------- -------------------- Problem solved
4
5603
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...
0
7226
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
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7049
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...
0
7499
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...
1
5055
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...
0
3199
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...
0
1561
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 ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
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...

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.