Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / July 2006



Tip: Looking for answers? Try searching our database.

Problems accessing Oracle

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Blaz Ziherl - 25 Jul 2006 12:44 GMT
The following simple piece of code breaks at 'End' reporting error "The
instruction at '...' referenced memory at '...'. The memory could not be
'written'. Click OK to terminate the program":

Private Sub Command1_Click()
   Dim SC As New ADODB.Connection
   SC.Open "Provider=MSDASQL.1;Data Source=Boniteta32;Extended
Properties=""DSN=Boniteta32;UID=baza;PWD=sql;DBQ=abraxas"""
   SC.CommandTimeout = 10
   SC.Close
   Set SC = Nothing
   End
End Sub

Debugger reports this:

(14bc.122c): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00371ff8 ebx=008f600c ecx=00000160 edx=ffffffff esi=008f3e9c edi=00000000
eip=77c2a573 esp=0012fb18 ebp=0012fb34 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00210206
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for
C:\W
INDOWS\system32\msvcrt.dll -
msvcrt!get_sbh_threshold+0x167:
77c2a573 895a04          mov     dword ptr [edx+4],ebx
ds:0023:00000003=????????

My code is pretty simple and I AM SURE there is nothing wrong with it. It
simply opens a connection, sets command timeout and closes the connection.
What on earth could possibly be causing this "access violation" error???

Regards,Blaz
Al Reid - 25 Jul 2006 12:46 GMT
> The following simple piece of code breaks at 'End' reporting error "The
> instruction at '...' referenced memory at '...'. The memory could not be
[quoted text clipped - 30 lines]
>
> Regards,Blaz

What happens if you remove the 'End' statement?  Does it still throw the error?  Did you put the 'End' statement there for debugging
purposes?  I ask because there is never a need for the End statement and it can cause problems.

--
Al Reid
Blaz Ziherl - 25 Jul 2006 14:54 GMT
I just put 'End' for debugging purposes, because otherwise I have to close
the application myself - the result is the same though. This error occurs
when application terminates - one way or another.

btw: I have the latest service packs installed, and the latest Oracle
drivers...but the problem still persists.

Did anyone already experience anything like that before? I have reproduced
this problem on all computers I tried - even clean Windows XP SP2
installation with VB6 run-time dlls, my exe and Oracle drivers only.

> > The following simple piece of code breaks at 'End' reporting error "The
> > instruction at '...' referenced memory at '...'. The memory could not be
[quoted text clipped - 36 lines]
> --
> Al Reid
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.