Subject: Visual Basic 6.0 - Application Error
Posted By: miqbal Post Date: 1/27/2005 3:35:12 PM
Application popup: vb6.exe - Application Error : The instruction at "0x0043f08f" referenced memory at "0x608af85c". The memory could not be "read".


Its only happening when I m closing VB.

System Config
Windows 2000 Server
Visual Studio 6.0 SP6
Visual Studio .Net

Checked for all known virus which could do tht like blaster and sasser
Reply By: ejan Reply Date: 2/4/2005 2:15:55 PM
Hi miqbal,

The problem you've specified does occur due to errors in DLLs used by VB itself. A straight forward solution to this is to simply uninstall visual studio 6 or VB 6 (if you've only vb 6 installed), restart your computer and then reinstall visual studio 6. I am sure it will solve your problem.

Regards,


ejan
Reply By: Rizzle-Q Reply Date: 2/5/2006 2:57:04 AM
I get the same error except is is this:

"
Application popup: VB6.EXE - Application Error : The instruction at "0x0055d683" referenced memory at "0x00000000". The memory could not be "read".

Click on OK to terminate the program
Click on CANCEL to debug the program
"

This doesn't happen when I close VB but instead when I RUN my application. This error pops up and I can't click on anywhere on my program.

I am running:
Windows 2000
Pentium 3, 450 MHz ~ 230 MB RAM
Visual Basic 6.0 Enterprise Edition (SP6)

This hasn't happened before and has only happened recently. I haven't used VB in a long time and this just happened now when I opened it. I have checked for viruses using AVG 7.1 Network Edition and I got nothing. I have tried to uninstall it and reinstall it and I get the same thing.

Any help!

Thanx in advance!
Reply By: nalla Reply Date: 2/6/2006 7:13:56 AM

Hi,
I faced the same problem.
Uninstall VB. Do a registry clean and re-install worked for me. And install Sp6 also.


nalaka hewage
Reply By: Rizzle-Q Reply Date: 2/6/2006 8:12:52 AM
Ok. That sounds like a good idea. What do you recommend for a tool to clean the registry. I have Registry Mechanic 5.0...
Reply By: marcostraf Reply Date: 2/6/2006 3:07:31 PM
I do not think this is a registry or installation problem.

Usually the "memory cannot be read" is an error that cannot be changed into a VB error, and therefore cannot be trapped, and it is caused by a component that is not written in VB, or a bad call to a Windows API.
Things to look for: because the problem is on exiting the application, look for all the allocated resources, all API calls, third party components, database connections, etc. The problem is not in the Unload code: when the app exits, under the scenes VB tries to deallocate all resources, close file handles and database connections, disconnect to server atc. It is not easy to find. Usually what I do is to remove (or commenting out) parts of code, one oer time, until the error disappear

Good luck,
Marco
Reply By: Rizzle-Q Reply Date: 2/6/2006 3:39:56 PM
I see what you're saying about trying to isolate the problem but I don't even have any code! I can't comment anything out to even isolate the problem... I have just re-installed VB 6.0 and opened a new Standard EXE and just pressed the Run button without any code at all and that same error pops up.

I think I know what is causing this problem: I just recently installed DirectX for Visual Basic between using VB a while ago and now. The only problem is that I cannot un-install that DirectX so I think I am just going to re-format my computer. This will definately fix many things, lol.

I don't have many thing to backup anyways...

Thanks for all your help Marco, ejan, & nalaka hewage anyways.
Reply By: LiveIt Reply Date: 3/6/2006 9:54:12 AM
Has anyone figured this out yet?  I am also getting a similiar error.  My vb6 app. runs fine until I add a fourth crystal report to the app.  It doesn't seem to matter which report is the fourth.  Once the fourth is added I start getting this error:  

"The instruction at 0x0f3051d8 referenced memory at 0x0f3df670.  The momory could not be written."

This application worked fine with a total of 11 reports in it until we moved over to Active Directory and I had to change references to the servers within the app.

Running:
vb6 svcpk 5
win 2000 svcpk 4
active directory

Confused?
Read the Directions.
Reply By: tekidum Reply Date: 9/2/2006 1:54:16 AM
Hi..i also face the same problem
this happen when i connect to smart reader and
write coding to retrieve data from reader..I use dll
to connect reader and vb...

when i run this form, msgbox will appears and said
"the instruction at "0X7c93426d" referenced memory at "0X00000000". The memory could not be "read".

and then my vb will be close.

sometime, this msgbox not appears but it also close my vb when I
run this form (send error or dont send)..

did someone can help with to handle this problem please??





Go to topic 49196

Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183
Return to index page 182
Return to index page 181
Return to index page 180
Return to index page 179
Return to index page 178
Return to index page 177