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

Access Violation @ odbc_fetch_row - but why?

Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?

echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}

Oct 13 '06 #1
5 1890

Sonnich wrote:
Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?
By a closer look the 3 first runs DO NOT return any data.
The result at the point is still 2 rows.
>
echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}
Oct 13 '06 #2

Sonnich wrote:
Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?
By a closer look the 3 first runs DO NOT return any data.
The result at the point is still 2 rows.
>
echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}
Oct 13 '06 #3

Sonnich wrote:
Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?
By a closer look the 3 first runs DO NOT return any data.
The result at the point is still 2 rows.
>
echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}
Oct 13 '06 #4
Sonnich wrote:
Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?

echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}
>From the memory address, it doesn't look like the it's crashing within
the PHP executable. You might be using a broken ODBC driver.

Oct 13 '06 #5

Sonnich wrote:
Hi!

I get this error: PHP has encountered an Access Violation at 04C3451C

It occurs at the while line, as I get a and b, but not c. I run this
a number of times, but the 3 first times it works, at the fourth, which
returns 2 rows, results in this error at that point.
Why?

echo "#a ";
if(odbc_num_rows($result)>1)
{
echo "#b ";
while(odbc_fetch_row($result))
{
echo "#c ";
$itemtosearch1[]=odbc_result($result,1);
$itemtosearch2[]=odbc_result($result,2);
}
}
Message was screwed up by a stray bracket...
>From the memory address, it doesn't look like the crash occurs within
PHP. The PHP executable starts at the address 0x04000000. It is not
large enough to reach 0x04C3451C. phpts#.dll normally starts at
0x10000000.

It could be that you're using a broken ODBC driver. Look at the crash
log, it'll tell you in which DLL the crash actually occurred.

Oct 13 '06 #6

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

Similar topics

2
by: peterlai | last post by:
<html> <head> </head> <body><pre> <?php $connection = odbc_connect("test","root","passwd");
15
by: Steven Reddie | last post by:
I understand that access violations aren't part of the standard C++ exception handling support. On Windows, a particular MSVC compiler option enables Microsoft's Structured Exception Handling...
0
by: Steven Reddie | last post by:
In article <slrnbnj19j.av.juergen@monocerus.manannan.org>, Juergen Heinzl wrote: >In article <f93791bd.0309282133.650da850@posting.google.com>, Steven Reddie wrote: >> I understand that access...
3
by: thomasp | last post by:
I am trying to get a record count of a PHP query on a MS Acess database using ODBC with a DSN for MS ACCESS connection. I got this code from the PHP manual user notes. It seems to return the...
0
by: Microsoft News | last post by:
I'm getting the following error when I shut down my C# .NET v1.1 application: 0xC0000005: Access violation reading location 0x73bc0000 This error didn't occur until I added a...
2
by: Boris Fortes | last post by:
I need to unhook event receiver as result of native C++ event. It unhooks successfully, but __raise does not return and throws access violation. Visual Studio 2003 How to reproduce: Consol...
1
by: Yew12 | last post by:
Hi, I'm having problems connecting to a Microsoft Access database. Im using PHP and ODBC but im not using a DNS. The scripts below give no errors but I they only give me a blank white screen. ...
2
by: =?Utf-8?B?c29jYXRvYQ==?= | last post by:
Hi, I have a DLL in VC6, when a specific function is called it will spawns a few threads and then return. The threads stay running and inside one of these threads an event is created using the...
39
by: Martin | last post by:
I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP 5.2.5. I have not used or changed this site for several months - the last time I worked with it, all was well. When I tried it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.