Link to home
Start Free TrialLog in
Avatar of edmac
edmac

asked on

VB Crashes during test run

I have added a Sheridan Data Grid to a VB program that worked fine up till now.

Now when I test run the program in the VB design mode, I get the error listed below. However, this error occurs on the second test run. VB crashes and I am brought back to the desktop.

How should I go about searching for the cause of this crash?

 VB5 caused an invalid page fault in
module MSVCRT.DLL at 0177:780015cc.
Registers:
EAX=0155000c CS=0177 EIP=780015cc EFLGS=00010206
EBX=0155000c SS=017f ESP=007feed4 EBP=007fef1c
ECX=0155000c DS=017f ESI=015543f8 FS=4fc7
EDX=007feeb4 ES=017f EDI=015543f8 GS=0000
Bytes at CS:EIP:
66 83 39 00 8d 41 02 74 0a 66 8b 10 40 40 66 85
Stack dump:
5f45bca7 0155000c 015543f8 015535d0 015543f4 2785b652 0155000c 007fef20 00000008 00000000 007f0000 5f418941 0155000c 007fef48 007fef4a 007fef8c  
Avatar of Jon_Raymond
Jon_Raymond

Place break points throughout your event handlers and step through your code to try to find the line of code that produces this crash.

Then you can post the offending code and spark some useful (hopefully) questions from some of the experts.

You could also comment out code that specifically deals with the Sheridan control and see if you still have a problem.  At least you could relate it to your code for dealing with the control.
The high memory address 0177:780015cc.. implies that this MAY be a virtual memory error.

If you have a permanent windows swapfile make it larger.. If you don't have a permanent swapfile (and have the available disk space), maybe you should create one.. (Windows will perform better).

To create/update a permanent Swapfile, do the following..

Start.. Settings.. Control Panel.. System.. Performanc Tab.. Virtual Memory Button.. Click on the specify my own settings option. In BOTH the Min box AND the MAX box.. place the size you want the Swapfile to be.. (3 times the amount of physical memory you have, is a very general rule of thumb). If the values in MIN and MAX are the same.. the Swapfile will be permanent.. as such.. Windows will NOT have to expend the overhead finding / building Temporary swapfile areas.

Reboot your computer.. and then rerun your test.

ASKER CERTIFIED SOLUTION
Avatar of wylliker
wylliker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edmac

ASKER

Thank You