473,402 Members | 2,055 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,402 software developers and data experts.

SQLColumns crash (Access violation)

Hello,

I have some code that uses ODBC to retreive column information
from a SQL Server database. The call to ::SQLColumns succeeds.
I then bind my C variables to the HSTMT handle. I then call
::SQLFetch to get the next row. ::SQLFetch crashes with an
access violation. I am unable to debug

The same code works without issue against a MySQL database.

Has anyone ever encountered this crash?
Is there a work-around anyone knows of?

Thank you very much for your help.

Sep 22 '05 #1
1 2009
vi********@gmail.com wrote:
Hello,

I have some code that uses ODBC to retreive column information
from a SQL Server database. The call to ::SQLColumns succeeds.
I then bind my C variables to the HSTMT handle. I then call
::SQLFetch to get the next row. ::SQLFetch crashes with an
access violation. I am unable to debug

The same code works without issue against a MySQL database.

Has anyone ever encountered this crash?
Is there a work-around anyone knows of?

Thank you very much for your help.


I have no idea about accessing MSSQL from C, but I suspect
that without a code sample, you won't get a very useful answer - it
would help if you can clarify which client library you're using, and
also give some specific code that fails.

Simon
Sep 22 '05 #2

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

Similar topics

2
by: thomas | last post by:
HI I've written a simpole script to open a new window with an image and resize the window depending on the image size: it is function fitToSize() { if( window.document.images )...
0
by: roni | last post by:
hi. i have application written in vb.net + managed c++ dll that call also to unmanaged c++ function. the application crash. i open the dump file of the crash with WinDbg and that's is the...
4
by: laniik | last post by:
Hi. What does it mean if my application is crashing on a cout<< line? specifically: cout<<"hello"<<endl does not crash it, but int i=0; cout<<"hello"<<i<<endl;
2
by: laniik | last post by:
Hi. For some reason I am getting a crash on pop_back() and Im not sure why. sorry I cant post the whole code because the vector is used in a bunch of places. i have a vector<bool> complete;
9
by: fishbaugher | last post by:
I have encountered some interesting crashes lately (Access97). Here is the symptom (after several days of different kinds of rebuilds including import and LoadFromText, all resulting in databases...
1
by: tony | last post by:
hi. my NET application is using mixed c++ dll ( managed and unmanaged) in that dll , im calling api's of unamanged dll. my application crash with no exception or warning. its hard to...
1
by: Jason Smith | last post by:
I'm rather new with vb.net and I'm having problems debugging a large vb.net application. The application is randomly crashing at two locations with "referenced memory at 0x0" violations. My...
2
by: kevinding | last post by:
Hi All, We meet an evil condition for our project. Our project has 3 layers. A C# layer to do some business logic, and Managed C++ layer translate managed values to native ones or vice...
5
by: Mahmoud Al-Qudsi | last post by:
I have an application that builds and runs just fine on my PC. It's pure C#, no P/Invoke, no Win requirements or anything. I built the app, stuck the dependcies in the same DIR, and copied it to...
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
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...
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...
0
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
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...

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.