Click here for important information about

vb 6.0 exe is getting closed automatically

Microsoft Visual studio 2005 professiona...
October 26, 2010 at 03:13:28
Specs: Windows
Hi all,

I have created a GUI in vb that reads data from USB port and displays in the text boxes. Then these values are stored in the database.

When ever i create a exe and execute, its getting closed automatically or displaying an application error message saying "the instruction at "0x747294" referenced at "0x3561bb". Data cannot be read. click ok to terminate the program.

Pls help!!

Thanks for reading.

See More: vb 6.0 exe is getting closed automatically

May 20, 2011 at 07:43:40
Have you tried to debug this in your coding environment rather than compiling it into an exe?

you will get a better understand of where the error lies if you run the code without making an exe, also a good idea will be to comment out all exception handlers until you can pin down the error.

Report •

May 20, 2011 at 08:17:37
Better than commenting out exception handlers is to go into the VB6 configuration and click on "Break on all Errors", excluding "Break on Unhandled Errors"

Don't forget to put it back to "Break on Unhandled Errors" once you have eliminated the problem.

Working out what is causing the error is impossible without seeing some of the code that causes the error. The cause can be anything from bad memory to a miss-configured API call


Report •
Related Solutions

Ask Question