Solved

Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience.

Posted on 2010-08-31
12
989 Views
Last Modified: 2012-05-10
Hi,

I am receiving this message after stop a brekpoint in the Form. If I have a breakpoint in the module and stop, it doesn't crash the VB.

Here are the dlls I got from Process Explorer when the VB crashes:

gridex20.ocx (package)
faultrep.dll (new object)
ieframe.dll.mui (deleted object)
olepro32.dll (deleted object)
winsta.dll (new object)
wtsapi32.dll (new object)

This error only happens with one specific project.

Thank you in advance.
0
Comment
Question by:DistillingExperts
  • 5
  • 2
  • 2
  • +1
12 Comments
 

Author Comment

by:DistillingExperts
ID: 33574557
Anyone?
0
 
LVL 8

Expert Comment

by:bright12
ID: 33575095
Can you supply some more information? What is the purpose of the script? And if you remove the breakpoint, will it crash?
0
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 33575318
Post the code for the Sub procedure involved in the crash.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:DistillingExperts
ID: 33575396
It only happens in the Form and not in the Module. In any Form. No sub procedure specific.
0
 
LVL 8

Expert Comment

by:bright12
ID: 33575427
So what you are saying is that when create only a form and run this VB is crashing?
0
 

Author Comment

by:DistillingExperts
ID: 33575757
No, The existing project has many forms and many modules. If I break point in the module and it stops the execution in the break point and then I select to stop it in the button, it will not crash. However, if I do the same in any form, it will crash.

I have done the same in others projects and didn't crash the VB.
0
 
LVL 38

Expert Comment

by:puppydogbuddy
ID: 33575874
try to determine what is different about this project.  
   Different version of ms access?
    Missing vb library references?
          etc
0
 
LVL 3

Expert Comment

by:Genetic_Wolf
ID: 33612927

I didn't check all object you're referencing but winsta.dll is using some sub classing method wich is very bad in Vb and CANNOT be interupted.  Could even make a BSOD occur

The only secure way to use subclassing in Vb is to DEACTIVATE IT when debuging.
and would be though to do if you're using a DLL.

I prefer to sub class inside Vb at all time since it give more control over it.

you cannot use IDE DEBUG mode WHILE your form is subclassed.
0
 

Author Comment

by:DistillingExperts
ID: 33769983
Hi Genetic Wolf, I will do this test as soon as time permits.
0
 
LVL 3

Accepted Solution

by:
Genetic_Wolf earned 500 total points
ID: 33775566
do you confirm your form was subclassed ?
because if so, like I said, you cannot debug in the IDE while subclassed.
0
 

Author Comment

by:DistillingExperts
ID: 33894919
I will be back to this near the weekend. Thanks.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel - Save a copy of work book 13 89
Modifying Conditional Format from VBA code 3 60
Zip Folders Using Chilkat Routines 1 58
Collapse and expand table in Word 2010 2 37
The Fluent Interface Design Pattern You can use the Fluent Interface (http://en.wikipedia.org/wiki/Fluent_interface) design pattern to make your PHP code easier to read and maintain.  "Fluent Interface" is an object-oriented design pattern that r…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question