Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Access Violation


I wrote a visual basic code in excel 5 and since we have converted to excel 7 here at work every time I try to execute it I get the following Dr. Watson error code:Access Violation 0xc000005address 0x6534231aThe code is a simple if statement loop. See below:Sub Bridge_units() If Range("b12") = 1 Then Range("c13") = "kg" Range("c14") = "kg" Range("c18") = "mm" Range("c19") = "m/min" Else Range("c13") = "lbs" Range("c14") = "lbs" Range("c18") = "inches" Range("c19") = "fpm" End IfEnd SubI have various loops like this througout the spreadsheet.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Access Violation
I have made a little app that opens word and then saves it as a .html file. It works fine on the machine i created it on, but if i install it onto another, it get a "Access Violation" Error at this line.

mywrd.Documents.Open App.Path & "my_files est.htm"

Access Violation
hi

When i use a my own custom control (which is developed in Delphi) during design time, i am getting error
"Access Violation at address xxxx19EA in module "xyz.OCX".
Read of address 000002CC".

Same, error message is coming during loading the form also, which has this control.

Help: About Access Violation
I have a DLL to be used under Visual Basic, and the DLL was done in C(using Visual C++). When I compile the project in Visual Basic, it works. But after I made a .EXE file in VB and ran it. The system said: "Unhandled exception in *.exe(*.Dll): 0xC0000005: Access Violation. " And it was the same when I debugged it in Visual C++(6.0) environment. Do you have any idea?
Thank you.

Access Violation
Hello,

why do i get an access violation error when trying to install the progam i made?
I used the setup and delpolyment wizard that comes with VB to make it

cheers.

rob

Access Violation
Hi All

I am getting this message when unloading form in VB.

Access violation at 0x77f8243d
program terminated

Pl tell how can slove this problem.


Srikanth

Access Violation
Hi all,

I have subclassed some comboboxes in VB (using setwindowlong). If the app exits "normally" it is not a problem, because I restore the original message-handler, but in the IDE, if I kill the app or if an exception happens and I kill the app, I get some violation errors or the VB IDE doesn't react and I have to kill it throw the task manager.

My question is, if there is a possibility to get an event, if VB kills my project. I know that a DLL's DLLMain-function gets the message PROCESS_DETACH'ed, but for this case I don't use a DLL.

thx PeterZ

Winsock Access Violation
Edit by Moderator: Please do not respond to threads older than one month. See the Posting Guidelines By all means put a reference to an existing thread in you post as I have done for you.Thanks

Re: http://www.xtremevbtalk.com/showthread.php?t=73767

Quote:





Originally Posted by PrOpHeT


Hmmm Thought I had it, I am currently using..

Still get the error, just not predictably anymore.

I have an error trap in every procedure in my project, and the bas module for the unhandled that onerror gave me. It at least still allerts to an access violation, but crashes vb none the less.




Yes, i got some problem too.
can someone give the solution?
thx.

Winsock Access Violation
I have a multiple connection winsock application that uses this loop to unload connections that have existed over a certian time limit. The time is set in the connection request Like...

Code:
Load SckIn(NextIn)
Load SckOut(NextIn)
SckIn(NextIn).Accept requestID
SckIn(NextIn).Tag = DateAdd("s", Timeout, Time)
SckOut(NextIn).Tag = SckIn(NextIn).Tag

The loop is...


Code:
On Error GoTo ErrorH
Dim W As Winsock
For Each W In SckIn
Dim Tme As String
If W.Index = 0 Then GoTo Nxt1
If Time > SckIn(W.Index).Tag Then
SckIn(W.Index).Close
Unload SckIn(W.Index)
End If
Nxt1:
Next

For Each W In SckOut
If W.Index = 0 Then GoTo Nxt2
If Time > SckOut(W.Index).Tag Then
SckOut(W.Index).Close
Unload SckOut(W.Index)
End If
Nxt2:
Next
Exit Sub
ErrorH:
MsgBox "Error timer1 " & Err.Description & Err.Source

I have used a custom error handler to control unhandled exceptions given to me in a previous post by OnError. Before the custom error handler vb simply crashed when it errored in this procedure.

Now it reports access violation then vb crashes.

My event log shows...

================Begin Log=======================
Event Type:Error
Event Source:Application Error
Event Category:None
Event ID:1000
Date:12/11/2002
Time:9:48:39 PM
User:N/A
Computer:ERR0R_0
Description:
Faulting application vb6.exe, version 6.0.81.76, faulting module mswinsck.ocx, version 6.0.88.4, fault address 0x0000429a.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 76 62 36 ure vb6
0018: 2e 65 78 65 20 36 2e 30 .exe 6.0
0020: 2e 38 31 2e 37 36 20 69 .81.76 i
0028: 6e 20 6d 73 77 69 6e 73 n mswins
0030: 63 6b 2e 6f 63 78 20 36 ck.ocx 6
0038: 2e 30 2e 38 38 2e 34 20 .0.88.4
0040: 61 74 20 6f 66 66 73 65 at offse
0048: 74 20 30 30 30 30 34 32 t 000042
0050: 39 61 0d 0a 9a..

==============End Log=========================

And...

==================Begin Log=====================
Event Type:Error
Event Source:Application Error
Event Category:None
Event ID:1001
Date:12/11/2002
Time:9:10:23 PM
User:N/A
Computer:ERR0R_0
Description:
Fault bucket 44003147.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 42 75 63 6b 65 74 3a 20 Bucket:
0008: 34 34 30 30 33 31 34 37 44003147
0010: 0d 0a ..
===============End Log========================

This error only occurs when timer1 is enabled.


I am using VB6 EE Sp5 on XP SP1


Any one have a clue on this one?

Access Violation Problem. (Please Take A Look)
For the line Set rs = cmd.Execute I am getting an error:

Run-time error '-2147217900 (80040e14)
Syntax error or access violation

The full code is below. Please see if I have set anything wrong.


Code:
Public Sub GetTableInfo()
Dim rs As ADODB.Recordset
Dim rsTemp As ADODB.Recordset
Dim cn As ADODB.Connection
Dim cmd As New ADODB.Command
Dim fs
Dim strSQL As String
Dim DataPath As String
Set fs = CreateObject("Scripting.FileSystemObject")
Set cn = New ADODB.Connection

cn.ConnectionString = "Provider=sqloledb;" & _
"Data Source=NYKDSM05207UIT05_MAIN_DEV;" & _
"Initial Catalog=CENTRALOPS;" & _
"Integrated Security=SSPI"
cn.Open

Set rs = New Recordset

rs.Open "Select * From SF_tblDBImportStructure where [Use] = 1", cn, adOpenKeyset, adLockOptimistic

With rs
.MoveFirst
Do Until .EOF
'LinkTable "IMPACTFailed_Trades" & Format(Form_frmMain.txtasofdate, "mmddyy") & "$", .Fields("Type"), .Fields("FilePath")
'LinkTable "IMPACTFailed_Trades" & Format(frmSettlementFails.txtasofdate, "mmddyy") & "$", .Fields("Type"), .Fields("FilePath")

DataPath = .Fields("FilePath")
With cmd
Set .ActiveConnection = cn
.CommandText = "SELECT FilePath.ENCD AS Entity, Mid([TRDT],5,2) & ' / ' & Right([TRDT],2) & ' / ' & Left([TRDT],4) AS TransDate, DataPath.TRNO AS TransNo, DataPath.CACT AS CustAccount, DataPath.TRDR AS Trader, DataPath.CUSP AS Cusip, DataPath.DACT AS DepoCode, Mid([STDT],5,2) & ' / ' & Right([STDT],2) & ' / ' & Left([STDT],4) AS SettleDate, DataPath.CNTA AS TransAmt, DataPath.CNFA AS [Par Amount], DataPath.CNFA AS FailedAmt, DataPath.CFDL AS FailedDollars, DataPath.PONO AS Price, DataPath.TYPE AS FailType, DataPath.NAME AS Security, DataPath.CSNA AS CustomerName, DataPath.CNIK AS CustomerNick, DataPath.CDBO AS BrokerDealer, DataPath.RDCD AS RecDel, DataPathk.RTID AS TradeID, DataPath.TPIN AS Product, DataPath.SPCD AS Salesperson" & _
"INSERT INTO [SF_tblFailsData] " & _
"FROM DataPath, SF_tblFailTypes" & _
"GROUP BY DataPath.ENCD, Mid([TRDT],5,2) & ' / ' & Right([TRDT],2) & ' / ' & Left([TRDT],4), DataPath.TRNO, DataPath.CACT, DataPath.TRDR, DataPath.CUSP, DataPath.DACT, Mid([STDT],5,2) & ' / ' & Right([STDT],2) & ' / ' & Left([STDT],4), DataPath.CNTA, DataPath.CNFA, DataPath.CFDL, DataPath.PONO, DataPath.TYPE, DataPath.NAME, DataPath.CSNA, DataPath.CNIK, DataPath.CDBO, DataPath.RDCD, DataPath.RTID, DataPath.TPIN, DataPath.SPCD, DataPath.TDOL, SF_tblFailTypes.Use" & _
"HAVING (((SF_tblFailTypes.Use)=1));"
.CommandType = adCmdStoredProc
End With

Set rs = cmd.Execute

.MoveNext
Loop
.Close
End With

FormatFails "SF_tblFailsData", "ApptblFailsData"
UpdateGBP
UpdateFailCost
End Sub

Access Violation In App Without Form
I have this code to start an application that should run in the background. For some reason the program uses a form, but that is not displayed anymore. I have a simple way of detecting errors, in which case I will set the variable errorFound (in Form_Load or any of the functions it calls).
However, my application returns to the calling application in case of success with an Access violation (-1073741819) when I would have expected 0. What could be wrong? I know that returning values in VB may be somewhat tricky, but I do not understand why it returns a correct value when it encounters an errors, and the access violation when it apparently has run successfully.


Code:
Public Sub Main()

frmDataview.Show
frmDataview.Hide

If errorFound = 1 Then
ExitProcess (-1)
Else
ExitProcess (0)
End If
End Sub

Access Violation Problem. (Please Take A Look)
For the line Set rs = cmd.Execute I am getting an error:

Run-time error '-2147217900 (80040e14)
Syntax error or access violation

The full code is below. Please see if I have set anything wrong.


Code:
Public Sub GetTableInfo()
Dim rs As ADODB.Recordset
Dim rsTemp As ADODB.Recordset
Dim cn As ADODB.Connection
Dim cmd As New ADODB.Command
Dim fs
Dim strSQL As String
Dim DataPath As String
Set fs = CreateObject("Scripting.FileSystemObject")
Set cn = New ADODB.Connection

cn.ConnectionString = "Provider=sqloledb;" & _
"Data Source=NYKDSM05207UIT05_MAIN_DEV;" & _
"Initial Catalog=CENTRALOPS;" & _
"Integrated Security=SSPI"
cn.Open

Set rs = New Recordset

rs.Open "Select * From SF_tblDBImportStructure where [Use] = 1", cn, adOpenKeyset, adLockOptimistic

With rs
.MoveFirst
Do Until .EOF
'LinkTable "IMPACTFailed_Trades" & Format(Form_frmMain.txtasofdate, "mmddyy") & "$", .Fields("Type"), .Fields("FilePath")
'LinkTable "IMPACTFailed_Trades" & Format(frmSettlementFails.txtasofdate, "mmddyy") & "$", .Fields("Type"), .Fields("FilePath")

DataPath = .Fields("FilePath")
With cmd
Set .ActiveConnection = cn
.CommandText = "SELECT FilePath.ENCD AS Entity, Mid([TRDT],5,2) & ' / ' & Right([TRDT],2) & ' / ' & Left([TRDT],4) AS TransDate, DataPath.TRNO AS TransNo, DataPath.CACT AS CustAccount, DataPath.TRDR AS Trader, DataPath.CUSP AS Cusip, DataPath.DACT AS DepoCode, Mid([STDT],5,2) & ' / ' & Right([STDT],2) & ' / ' & Left([STDT],4) AS SettleDate, DataPath.CNTA AS TransAmt, DataPath.CNFA AS [Par Amount], DataPath.CNFA AS FailedAmt, DataPath.CFDL AS FailedDollars, DataPath.PONO AS Price, DataPath.TYPE AS FailType, DataPath.NAME AS Security, DataPath.CSNA AS CustomerName, DataPath.CNIK AS CustomerNick, DataPath.CDBO AS BrokerDealer, DataPath.RDCD AS RecDel, DataPathk.RTID AS TradeID, DataPath.TPIN AS Product, DataPath.SPCD AS Salesperson" & _
"INSERT INTO [SF_tblFailsData] " & _
"FROM DataPath, SF_tblFailTypes" & _
"GROUP BY DataPath.ENCD, Mid([TRDT],5,2) & ' / ' & Right([TRDT],2) & ' / ' & Left([TRDT],4), DataPath.TRNO, DataPath.CACT, DataPath.TRDR, DataPath.CUSP, DataPath.DACT, Mid([STDT],5,2) & ' / ' & Right([STDT],2) & ' / ' & Left([STDT],4), DataPath.CNTA, DataPath.CNFA, DataPath.CFDL, DataPath.PONO, DataPath.TYPE, DataPath.NAME, DataPath.CSNA, DataPath.CNIK, DataPath.CDBO, DataPath.RDCD, DataPath.RTID, DataPath.TPIN, DataPath.SPCD, DataPath.TDOL, SF_tblFailTypes.Use" & _
"HAVING (((SF_tblFailTypes.Use)=1));"
.CommandType = adCmdStoredProc
End With

Set rs = cmd.Execute

.MoveNext
Loop
.Close
End With

FormatFails "SF_tblFailsData", "ApptblFailsData"
UpdateGBP
UpdateFailCost
End Sub

Win2000 Access Violation
Hello y'all.

I've got a fairly large scale project which in all my many tests on many platforms is bug free on WinNT, 98, 95, and Me.

However, in windows 2000 it seems to crash randomly. Sometimes it just terminates, and sometimes it closes via Dr. Watson with an access violation or fatal exception error. Usually this occurs during the longer loops where there is alot of data being proccessed, and there is a DoEvents within the loop after every 5 iterations. But sometimes it happens just randomly, one time when selecting the 'About' from the 'Help' menu.

I was just wondering if anyone could offer me some advice as to what I might want to suspect. It'd be much appreciated.

Access Violation (0xc0000005)
I have a problem with multiple crystl32.ocx's on a form - if i preview a report on the form where there are more than one crystal control and then try to do anything else - including exiting -my app carashes with the following error:

Exception:
Access Violation (0xc0000005), Address: 0x250127fb

Anyone see this before? Any solutions?

Thanks,

Debug An 'Access Violation'
I have a VB 6 app which processes tiff files. I have recently added 3rd party tool which enhances the tiff image but I am now getting an Access Violation from time to time. Is there any way to error trap and debug this? I also have the Dr Watson's error log.

Setup Access Violation!
Hey All,

I just made a silly little program with a single text box, which is populated by a db, through a DataEnvironment.

I then compiled the project file, and did the best I could (with the small amount of knowledge i have), to package & deploy it.

When I began the setup (to see if it was working ok), half way through, I started getting errors like the one below.
______________________________
C:WINDOWSSYSTEMMSBIND.DLL

An access violation occured while copying the file.
------------------------------------------------->

And then with other dll's...

What am I not doing correctly?

Thanks.

Access Violation Excel On Vb
i am using vb to extract data from a text file and output it to excel. I was able to create for workbooks on one excel session but at the end the module theres always a message popping noting of an illegal operation in excel. when i debug it says there was an access violation.

just clicking on ok on the error dialog, brings me back to my program. when i check on the excel files generated, all the data i needed are there. the message is just too annoying.

does anyone know how to resolve this problem.

MidiIn_Proc - Access Violation
MidiIn_Proc - Access Violation ...?

Access Violation VB6STKIT.DLL
Hi,

I have created a small program in VB6 which uses ADO to access an Access 2000 database. I used the package and deployment wizard to create a setup program, and have successfully installed the program on both my own PC, and a colleagues (which does not have Visual Studio installed).
However, I have tried to install it on another colleagues PC, and I am getting two errors when the setup starts copying files;

C:WINTsystem32VB6STKIT.DLL
An access violation occurred while copying the file

C:WINTsystem32msvbm60.dll
An access violation occurred while copying the file

I've looked in the CAB file that was created by the package and deployment wizard, and both of the files are included in it.

Does anyone have any ideas on this one??

Error 5 : Access Violation
At program termination i seem to always get an access violation error 5. i havent the slightest idea whats causing it as the program runs fine in the VB ide. please help!!!!!!

Access Violation In VB Runtime
I'm having a problem that is similar to one I found on the microsoft website (Q198607) but not entirely. I have a callback function that's getting called but then dying in MSVBVM60.DLL. I'm reasonably sure that the other program started a thread and then called my callback function as stated by this problem, however, when I run it in the VB IDE, I don't get this problem. Only when I execute the .exe file from outside the development environment. This kinda makes me wonder if I indeed am seeing the problem described.

I'm looking for suggestions for getting around this problem because if VB cannot handle call back functions from another process just because it isn't in a VB thread, it's practically useless.

Any help would be appreciated. Thanks.

Kenny

Access Violation Erros
Does anyone know how to avoid access violation erros during an install? Even if I shutdown EVERYTHING using ctrl-alt-del when im installing my program i get access violations using msvcrt.dll and mfc42.dll consistently. How safe is it to check for the existense of these files on the system and ignore them if they are there. (I doubt thats a very good Idea) But I am afraid that when I distribute this application to 500 users Im gonna get 500 calls asking me what this access violation error means.
Any suggestions would be appreciated
Thanks
Joe

Access Violation When Trying To Print In Excel From VB
Hello everyone,

I have created a program that processes some data from a database and then takes that data and puts it into an excel spreadsheet. The program then prints the spreadsheet to a network printer. The program works fine on a couple of machines that are running win2k and office 2000. However, on a couple of machines that are running NT and office 97/2000 the program generates an access violation error and closes down when I try to print the spreadsheet. If anyone has any ideas I would really appreciate the help.

Access Violation 0xc0000005 In Vba Excel
Dear recipient:

I have this error access violation 0cx0000005 to open file excel, I generate this file in code vba.Don't have idea where is the error.

I have a next code fragment

For p = 0 To num_pems - 1
Workbooks(libro_paquete).Activate
Sheets("MFisicas " & pems(p)).Select
MsgBox "pem i" & pems(p)
Sheets("MFisicas " & pems(p)).Delete
Next
Application.DisplayAlerts = True


Workbooks(libro_paquete).Save
Workbooks(libro_paquete).Close

if elimite the sentence for to open file correct.

Can you help me please?

Regards.



Report this post to a

Installation Problem: Access Violation
I finished writing a program and used the Package & Deployment Wizard to create a setup program.

Every time I try to install this program, I get "An access violation occurred while copying the file MSVCRT.DLL"

I made sure to exit out of all (visible) programs when installing, but maybe something is still using the DLL?

I don't know whether this error has something to with the setup program itself, or some problem with my computer at installation time.

Something I thought was weird was that "MSVCRT.DLL" isn't listed in the dependency file but the P&D Wizard includes it in the CAB file.

If anyone knows what the problem is or has a solution, I would greatly appreciate it.

Syntax Error Access Violation
Hi ,

I received an error " Syntax Error, Access Violation" Using the following code in my data report:


Quote:




Dim MyRecSet As New ADODB.Recordset
Dim cmd As New ADODB.Command
Dim MyConn As New ADODB.Connection
Dim strSQL As String
MyConn.Open "Provider=MSDASQL.1;Extended Properties=DRIVER=SQL Server;SERVER=192.168.1.20;UID=sa;PWD=;APP=Visual Basic;WSID=cdvillanueva;Database=Employees"

strSQL = "Select * from Family"

With cmd
.ActiveConnection = MyConn
.CommandType = adCmdText
.CommandText = " SHAPE {" & strSQL & "} AS cmdGroup Compute cmdGroup BY 'FamilyEmpID'"
.Execute
End With

With rs
.ActiveConnection = MyConn
.CursorLocation = adUseClient
.Open cmd
End With



With FamilyReport
Set .DataSource = MyRecSet
.DataMember = ""

With .Sections("section6").Controls
.Item("EmpID").DataField = "FamilyEmpID"
End With

With .Sections("Section1").Controls
.Item("LName").DataField = "EmpLName"
.Item("FName").DataField = "EmpFName"
.Item("MName").DataField = "EmpMName"
.Item("FLName").DataField = "LName"
.Item("FFName").DataField = "FName"
.Item("FMName").DataField = "MName"
.Item("Address").DataField = "Address"
.Item("Contact").DataField = "Contact"
.Item("Relationship").DataField = "Relationship"
.Item("Notify").DataField = "Notify"

End With
.Refresh
.Show
End With




Please help me, the error is pointing on .Execute Thanks!

Memory Access Violation With Window NT
When I compile my program to P-Code, it works beatifully.
When I compile to Native Code, optimized for Speed, then the problem starts. When I open a certain form in my program, my Windows NT says Memory Access Violation and references some memory address and istruction set .. blah blah blah.

*** is going on!?!?!??!?!

Access Violation - Msvcrt.dll && Expsrv.dll
Hi,

I have just used the Deployment wizard for my app and am having trouble installing it onto another machine.

Whilst setup.exe is doing it's thing, I get an access violation for msvcrt.dll. When I click "Ignore" I then get an access violation for expsrv.dll. Clicking ignore doesn't seem to have any effect on my app but I don't want these errors appearing during install.

If i uncheck these during the creation of my deployment app there seems to be some strange side effects.

The list boxes and file list boxes in my app have now expanded dramatically. By that I mean the length is no longer what it was set to, but rather runs off the screen.

Has anybody seen this or know what causes it?

TIA

Access Violation In Setup After Deployment
I just finished using the packaging and deployment wizard for a program I wrote in vb6. The problem is when I run the setup.exe, I am given a message of "an access violation occurred while copying the file" for various dll files such as:
-windowssystemvb5db.dll
-windowssystemmsrepl35.dll

Among other files with the same problem. What does this mean. Any help would be greatly appreciated. Thanks.

ComDat.Dll (An Access Violation Occured) ?
Greeting.

I used the VB6 package and development wizard to compile my newly developed
VB6 program into 8 sy# diskette.
I then copy these files into different diskettes and took it to my user
place who is running window nt for installation. When I copy the last
diskette this message stare straight into my face!

C:WindowsSysem32Comcat.dll
An Access violation occured while copying the file
<Retry> <Cancel><Ignore>

When I try pressed ignore button, the setup program ask me to insert
diskette #2 into <A> drive which I duely did. But the setup program kept
asking me to insert disk 2 cause it cannot find file A:Pcosys~2.cab. I did
a dir on <A> drive and discovered that pcosys~2.cab is actually inside this
diskette no. 2

What did I done wrong???? can it be that i missed something on the package
and development wizard. or is ti due to the copy sy1 to sy 8 method? I did a
simple copy of sy1.cab to sy 8.cab into <a> drive and copy setup.exe,
setup.lst into another diskette. Oops, I am using Window 98SE for
development work.

Any suggestion to overcome the problem above is most welcome.

Regards

Access Violation During Creation Of Executable
I have an application created using VB 5.0. I am trying to create the executable and each time I get a Dr. Watson error

VB5.exe
access violation (0xc0000005)
address: 0x0fabe8bd

I have one PC that allows me to create the executable but can not get it created on any other machine. I need to get this figured out b/c I do not want to be dependent on just one machine and the machine is due to be updated soon.

I have tried reinstalling VB, even tried installing VB on a machine that had nothing but WinNT on it. Still no luck.

Has anyone had a problem like this? What are the ideas to work through it?

Thanks for the help,
Steve

Access Violation Error 0xc0000005
i am getting a really weird error.
say ive got two forms, A and B.
if i open A before opening B, i get a doctor watson saying "Access Violation Error (0xc0000005)".
also, it only happens once the code has been compiled...
if i open B then A, i dont get the error. i'm using vb6 and connecting to msql via a de.

any suggestions?

VB6: Getting 0xC0000005 Access Violation From VB After Accessing Dll
I have a dll written in C++ that I am accessing from a VB6
executable. For a long time this ran fine. I made a minor
change, I call the dll from a different form than I used to.
The dll runs fine, but upon returning to my app(written in VB6),
I get an 0xC0000005 Access violation from my app usually in
OLEAUT32.DLL. (it doesn't matter what my app does when returned
to)
I run the C++ debugger, and the dll does finish fine.
What is really weird is that when I call the dll from another
routine (on the same form, sending the same parms) it runs
fine.
BTW, I've only tried running on XP professional, so far.

Program Crash, Access Violation.
I have a problem with vb6.0 on my laptop...

On my home computer (windows xp) it runs fine, but on my laptop (windows2000) it crashes..

if I run the program I get : the instruction at "0x1f467d6a" referenced memory at "0x0000000c". the memory could not be "read"

and if I debug in visual c++ dissassembly I get: Unhandled exeption in Project.exe (MSADO15.DLL): 0xC00000005: Access vilation. when its loaded in...

The error happends when I try to open a dataenvironment connection to insert data in a mshflexgrid. I tried to reinstall
vb6.0 on the laptop, but the error is still there, I deleted the msado15.dll file and refreshed so the system created a new
one, but no luck. Finally I gave system denied write access to the msado15.dll, but then I got the error Activex cant create object..

I also tried to run a compiled program on another laptop (winxp) and it works...

anyone have any ideas ?

can the moderator please move this post as I posted it in the wrong forum ? sorry for that

<Edit> betrl8thanever: Moved to VB Newbies Forum </Edit>



Edited by - betrl8thanever on 11/27/2004 7:24:55 AM

MSVBVM60.DLL Crash Access Violation
-------------------------------------------------------------------------------
I have written an EXE using Borland C++ Developer v5. This EXE (call it (A))
communicates with two lots of 3rd party software. One provides certain
functionality through a couple of DLLs by the main code #including the
relevant H files. Call this 3rd party software (B). These DLLs make use of
Matlab DLLs for computation purposes. The second provides certain functionality
through a separate EXE, and communication is via a DLL that is loaded at
run-time via a LoadLibrary() call. Call this 3rd party software (C).

The history of development is:
1. (A) developed initially under Borland C++ Developer v3.
2. (A) integrated with (B) successfully under Windows NT4 SP4. This required
   updating to Borland C++ Developer v5.
3. (B) found to run too slowly, an alernative is provided, call it (B2).
   (B2) does not rely on any calls to Matlab DLLs, it is pure 'C' but (B)
   retains calls to Matlab DLLs.
4. (C) is developed but requires SP6 to work. SP6 is installed on the PC.
5. Because (B) runs so slowly, (B2) is always used to get results and the
   combination (A)+(B2)+(C) works fine under Windows NT4 SP6.
6. There comes a point where a higher fidelity result is required using
   (B). The whole package is run, (A)+(B)+(C). On calling the main (B)
   calculation routine the PC crashes with the message:
   "Access Violation in MSVBVM60.DLL".

It is known that (B) has no reliance on this VB DLL. (C) does rely on this
DLL but even when (A) code is altered so that it does not link in any way
to (C) and the (B) routine is accessed, the AV crash still occurs.

The DLL version I have is 6.00.8964. I have tried using other versions:
6.00.8495 and 6.00.8877 with exactly the same result.

Can anyone suggest any ideas as to why I am suddenly getting this AV crash
in MSVBVM60.DLL?

Thanks

HELP Access Violation On Terminate Application
I have an application in VB6 and call a DLL written C++. The DLL creates 2 additional threads and uses callback (via ADDRESSOF)to notify the VB application on arriving events. All works fine except terminating the application. On some systems always and on some systems sometimes I get an acces violation or an error 87 and a dr.watson if I terminate the application. I do a close handle on both threads in the DLL and I have also tried to set the
Callback addres in the DLL to NULL but nothing helps.
Many thanks in advance for any tip.
Regards Heinz

Access Violation Message During Installation Setup
I am trying to install my VB app which uses An Access DB on a client's new Dell machine.

It has Win 2k pro just as my development machine has.

I had no errors building my deployment package and setup on my machine.

When I try to install it on the new Dell I am getting the following error:

An access violation occurred while copying the file
C:winntsystem32msjtes40.dll

I tried ignore just to see how many more I would get and kept getting the same message on the following files:

msrepl40.dll
msrd2x40.dll
expsrv.dll
msjet40.dll

I aborted the installation at this point.

Any ideas, this is my first attempt to deploy a VB package on another machine.

I copied all required data files and directories to the new machine before trying to install.

Office XP is installed on the Dell which includes Access and I have Office 2000 which uses Access 2000.

I use an Access DB in my VB program, but does not the package & deployment software pull everything it needs to run Access on the Dell without having to have a version of access on it?

I realize the error message word access is not referring to MS Access itself, but I saw the msjet40.dll was one of the files in the error messages.

All help will be greatly appreciated

Access Violation With Msvcrt.dll && Version Problems
Hi,

I'm having repeated problems with my installation packages. I'm using vb 6.0 on Windows 2000 server.

I repeatedly get the message like the file you are going to copy is older than the one on the system.
How to overcome this? how to include the latest verions of the files i'm using in my installation package(i'm using package and deployment wizzard).

The message i usually get for msflxgrd.ocx,comdlg32.ocx, mfc40.dll

And also the error i get with out fail is, "An access violation occured while copying the File :msvcrt.dll".

Probably this is executing when i'm installing. I want to create an installation package with out such errors.

Please help.


Srinivas

Access Violation When Opening Excel File.
The following error is happening every time an Excel file is being opened.
Is this a simple permissions problem or is there something more subtle happening with Excel?

The code is simple:
Set xl = New Excel.Application ' CreateObject("excel.application")
xl.Application.Workbooks.Open strfpath ' , True

And the DrWatson dump is attached.

Thanks in advance for any advice on this.

Lorne.

Access Violation Unhandled Exception Error
Hi,

i have a strange behaviour in my application.

sometimes, when i run my application i get this error message:

Unhandled exception in vb6.exe(msvbvm60.dll) 0xC0000005 Access violation

What is strange is that i don't receive the message always in the same form or everytime i do a specific action. It's kind of random (i know it isn't, but i don't get a constant message in a specific location)

Any idea on what may be causing this??

Thanks

Access Violation Error While Running Setuo
I had created an Address Book application in Visual Basic and with the help of Package and Deployment wizard I had created setup files. Then I tried to install the applicatin on my office machine, every thing was well until I got an error message box saying,
"C:WindowsSystemMSVCRT.dll" An access violation occured while copying the file.
It gave three options ABORT, RETRY, IGNORE. First I tried retry command and then I said Ignore, it gave one more message box saying,
"If you ignore a copy error, the file will not be copied. The application may not function properlyas a result. Do you want to ignore the error?"
I said Yes and it installed all remaining application. After that I ran the applicatin and it worked properly. Can you tell me what the error about MSVCRT.dll an access violation ment and how can i get rid of the error?

VB Compiler Crash On W2K With C0000005 Access Violation
I have a vb6 application that compiles successfully on NT4 Terminal Server, but I can't compile the application on W2K. The compile crashes with a c0000005 access violation. We wer able to compile on W2K at one point, but we had to move som dlls around. To my knowledge, these systems have only bee receiving periodic patch updates. We are certain that it is configuration problem, because it is crashing at the same poin on two different servers. It does generate a Dr.Watson log an dump file when it crashes. I have reviewed the log file and th dump with drstsn32.exe, but I am not very experienced a interpreting the output. I am also using ntfilmon to revie system activity.

Would it be possible to post a copy of the dr watson log file, o anything else that would provide some insights? Any help woul be greatly appreciated.

Regards,
Mac Ewell

VB Stored Proc Access Violation Prob
I have a stored Procedure in SQL Server 2000 which will return a
recordset. I want to open that recodset from VB.the code I wrote:
here Empinfo is recordset variable and spGetEmpInfo is the stored proc
1) set Empinfo = cn.execute(spGetEmpInfo '%','%','%','%','%')
Problem is when I want to access the Empinfo it raises error Object is
closed but If I open like this
2)Empinfo.open "spGetEmpInfo '%','%','%','%','%'",cn,,adCmdStoredProc
it raises error "Systex Error or Access Violation"
Funny thing is 1) line code ran quitely before but suddenly now it is
causing problem.
Can anyone tell me why ?

Irfan

Access Violation With Msvcrt.dll && Version Problems
Hi,

I'm having repeated problems with my installation packages. I'm using vb 6.0 on Windows 2000 server.

I repeatedly get the message like the file you are going to copy is older than the one on the system.
How to overcome this? how to include the latest verions of the files i'm using in my installation package(i'm using package and deployment wizzard).

The message i usually get for msflxgrd.ocx,comdlg32.ocx, mfc40.dll

And also the error i get with out fail is, "An access violation occured while copying the File :msvcrt.dll".

Probably this is executing when i'm installing. I want to create an installation package with out such errors.

Please help.


Srinivas

Access Violation (0xc0000005), Address: 0x00000000:: HELP!!
I get this error on a machine after trying to program run a program.

[Machine]
WINDOWS NT4 Service Pack 6a
64RAM -> 128RAM
PII 300 Mhz

I used the MSM (windows installer) to install my program.
What bugges me is that the program worked then the next day it gave me that error
Dr Watson Windows NT Error access violation (0xc0000005), Address: 0x00000000

I have no idea what to do or were to look.
I know that I had a big problem trying to install this program on to the machine.

[Program]
Use dao to talk to database (Access 2000)
Uses dao 2.5 (msado25.tbl)
Uses comport to talk to device hardware. ADT
They provide their own activex component to interface with unit(ADT)
Crystal Reports 9 to display reports. (CRveiwer9)

I built the program in windows 2000 and Visual studio 6 pro. (VB6 Service Pack 5)

NOW
With that msado25.tbl it gives me problems with registering that file!?
I did install the latest version of mdac on the machine (2.5)
But that didn't work. When I talk to the database it works fine. I fetches data back but if I go to the ADT unit it give that error and crashes.
So this tells me that the database stuff is fine.

What is this error? What can cause this error?
access violation (0xc0000005), Address: 0x00000000

Access Violation With Msvcrt.dll && Version Problems
Hi,

I'm having repeated problems with my installation packages. I'm using vb 6.0 on Windows 2000 server.

I repeatedly get the message like the file you are going to copy is older than the one on the system.
How to overcome this? how to include the latest verions of the files i'm using in my installation package(i'm using package and deployment wizzard).

The message i usually get for msflxgrd.ocx,comdlg32.ocx, mfc40.dll

And also the error i get with out fail is, "An access violation occured while copying the File :msvcrt.dll".

Probably this is executing when i'm installing. I want to create an installation package with out such errors.

Please help.


Srinivas

Unhandled Exception In VB6.EXE(DAO350.DLL) 0xC0000005 Access Violation
We are using Windows 2000 Pro (SP4), to access an Informix 7.31 database on a Windows 2000 Server (SP3).

RDB set as public variable in form as follows:
Public RDB As Database

It is then opened up as follows:
Set RDB = OpenODBCDatabase()

--------------------
Function OpenODBCDatabase is as follows
--------------------
Function OpenODBCDatabase() As Database
On Error GoTo OpenDatabaseError

Set OpenODBCDatabase = Workspaces(0).OpenDatabase("DatabaseName", _
False, True, _ "ODBC;DSN=DSNName;DATABASE=DatabaseNameOnDisk;UID=UserID;PWD=password; LOGINTIMEOUT=240")
On Error Resume Next
Exit Function

OpenDatabaseError:
MsgBox "Trying to open the Database" & Chr(13) & _
"Error # " & Err.Number & Chr(13) & _
Err.Description & Chr(13) & _
"Generated from " & Err.Source, vbCritical
Resume Next
End Function
--------------------

The code that now triggers the error (but worked in the past):
SQLQuery = 'UPDATE ttdsls040001 SET t_opicker = "abc12345" WHERE t_orno = 50000'
RDB.Execute SQLQuery, dbSeeChanges + dbFailOnError + dbSQLPassThrough


I get an application error, details below:

First this pops up:
vb6.exe Application Error
The instruction at "0x04672b9f" referenced memory at "0x6d3fd0ee". The memory could not be read. (Note - the addresses change every time I try this).

So, I click "Cancel", which brings up the debugger. The debugger shows:
Unhandled exception in VB6.EXE(DAO350.DLL) 0xC0000005 Access Violation

I click "OK" then get this:

A bunch of Assembler, with the little yellow arrow pointing to this line:
04672B9Fcmpesi,dword ptr [eax]

The Call Stack shows:
DAO350! 04672b9f()
6d3fd0ee()

This used to work. What is different? I don't know. Why is it no longer working? I'm not sure. I have been playing around with the project references to see if anything helps. I was/am using Microsoft DAO 2.5/3.5 compatibility library. Any assistance would be appreciated.

Approach To Solve “Access Violation” Error In Msvbvm60.dll
I need assistance to trace a difficult error, due to multithreaded issues with a media player. My mediaplayer application is built in VB6 SP6 and depends on several 3rd party ActiveX components. The application works perfectly on most clients machines (XP and W2K enviroment) while other machines raise “Access violation” error in msvbvm60.dll. On the machines where the error is raised, the error is raised inconsistent after 2-15 minutes usage and without user input. The error can pup-up right in the middle on any song and the error is difficult to reproduce. I start to suspects that some Windows settings or background processes is causing a conflict. I’m a skilled programmer but have very little knowledge in debugging. What is a good approach to identify this error? Will NuMega or other tools help me?

Michael Karathanasis from Sweden

VB6.EXE Error -Crystal Report,CRAXDRT.DLL Access Violation
Am getting this error message whenever i want to view a new report based on some number.Sometimes i can view the report once or twice after that iam getting this message.Pls Help
Thanks in Advance
Farooq

Syntax Error Or Access Violation While Executing Stored Proc
Hi!

I'm getting this error...
Here is my code:
Dim db As Connection
Dim rsLog As ADODB.Recordset
Dim comLog As New ADODB.Command

Set db = New Connection
db.CursorLocation = adUseClient
    db.Open "PROVIDER=MSDASQL;dsn=mydcn;uid=Win2000;pwd=;database=mydatabase;"

    With comLog
        
        .ActiveConnection = db
        .CommandType = adCmdStoredProc
        .CommandText = usagelogupdate
        .Execute
    
    End With

StoredProc:

CREATE PROCEDURE [dbo].[mytable] AS
DECLARE @var char(3)
SET @var = datepart(mm,GETDATE())

delete from mytable where substring(myfield,1,3) = @var
GO

???

Have a great day!

Copyright © 2005-08 www.BigResource.com, All rights reserved