473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Program crash - no rhyme or reason

I am experiencing problems with one Visual Basic project. It is prone
to crashing - in the VB IDE and also when running a fully compiled
executable. When it crashes in the IDE, then VB terminates too with no
error message. When the standalone EXE crashes there are no error
messages either. The project is reasonably big - 60 forms, 20
modules, 7 class modules, and it references a couple of custom DLLs
too.

I've tried running Dr Watson and it reports nothing. Similarly the
Event Viewer has no errors either. When running in Debug mode, the
crash terminates VB. The crashes are unpredictable - don't always
happen at the same point.

Any suggestions? I'm running VB 6.0 Service Pack 5 on Windows XP
Professional.
Jul 17 '05 #1
8 4932
On 20 Apr 2004 02:27:48 -0700, jo*********@hotmail.com (John Grogan)
wrote:
I am experiencing problems with one Visual Basic project. It is prone
to crashing - in the VB IDE and also when running a fully compiled
executable. When it crashes in the IDE, then VB terminates too with no
error message. When the standalone EXE crashes there are no error
messages either. The project is reasonably big - 60 forms, 20
modules, 7 class modules, and it references a couple of custom DLLs
too.

I've tried running Dr Watson and it reports nothing. Similarly the
Event Viewer has no errors either. When running in Debug mode, the
crash terminates VB. The crashes are unpredictable - don't always
happen at the same point.

Any suggestions? I'm running VB 6.0 Service Pack 5 on Windows XP
Professional.


When did the problem start ?
Jul 17 '05 #2
March 25th. <g>
(Don't ask the question if you don't want to hear the answer) :-)

--

Randy
"J French" <er*****@nowhere.com> wrote in message
news:40***************@news.btclick.com...
: When did the problem start ?

Jul 17 '05 #3
On Wed, 21 Apr 2004 03:58:43 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
March 25th. <g>
(Don't ask the question if you don't want to hear the answer) :-)


Heh,

I bet he did something to his system

Ah well, start stropping Occam's razor
Jul 17 '05 #4
er*****@nowhere.com (J French) wrote in message news:<40***************@news.btclick.com>...
On Wed, 21 Apr 2004 03:58:43 GMT, "Randy Birch"
<rg************@mvps.org> wrote:
March 25th. <g>
(Don't ask the question if you don't want to hear the answer) :-)


Heh,

I bet he did something to his system

Ah well, start stropping Occam's razor


?

After scouring the archives here I've set the project to compile to
"P-code" and it is slightly more stable, but still crashes
occasionally. Think it started to happen after I added custom DLLs.
Jul 17 '05 #5
On 22 Apr 2004 04:51:04 -0700, jo*********@hotmail.com (John Grogan)
wrote:

<snip>
I bet he did something to his system

Ah well, start stropping Occam's razor
?


That means cutting out bits of the code until you isolate the problem.

After scouring the archives here I've set the project to compile to
"P-code" and it is slightly more stable, but still crashes
occasionally. Think it started to happen after I added custom DLLs.


'Real' DLLs or AX things ?

If it is 'real' DLLs then you might have faulty declarations, or the
DLLs themselves might be buggy.
Jul 17 '05 #6
er*****@nowhere.com (J French) wrote in message news:<40****************@news.btclick.com>...
On 22 Apr 2004 04:51:04 -0700, jo*********@hotmail.com (John Grogan)
wrote:

<snip>
I bet he did something to his system

Ah well, start stropping Occam's razor
?


That means cutting out bits of the code until you isolate the problem.


Thanks - it was actually the March 25th reference that I didn't
understand though ;)

After scouring the archives here I've set the project to compile to
"P-code" and it is slightly more stable, but still crashes
occasionally. Think it started to happen after I added custom DLLs.


'Real' DLLs or AX things ?

If it is 'real' DLLs then you might have faulty declarations, or the
DLLs themselves might be buggy.


ActiveX DLLs - I picked up some sample code that creates a wrapper
round a third-party Mapping ActiveX that's a major part of my project.
The sample project that I downloaded works fine, but the wrapper DLL
seems to be causing problems in my own project.
Jul 17 '05 #7
: Thanks - it was actually the March 25th reference that I didn't
: understand though ;)
JG: I am experiencing problems with one Visual Basic project....

JF: When did the problem start ?

RB: March 25th. <g>

Nothing more than a (humorous) example of answering the question asked.
Y'know, the type of answer a systems op could expect to get from an
end-user.

--

Randy
Jul 17 '05 #8
On 23 Apr 2004 07:58:22 -0700, jo*********@hotmail.com (John Grogan)
wrote:
er*****@nowhere.com (J French) wrote in message news:<40****************@news.btclick.com>...
On 22 Apr 2004 04:51:04 -0700, jo*********@hotmail.com (John Grogan)
wrote:

<snip>
>> I bet he did something to his system
>>
>> Ah well, start stropping Occam's razor
>
>?


That means cutting out bits of the code until you isolate the problem.


Thanks - it was actually the March 25th reference that I didn't
understand though ;)


That was Randy - not me
>
>After scouring the archives here I've set the project to compile to
>"P-code" and it is slightly more stable, but still crashes
>occasionally. Think it started to happen after I added custom DLLs.


'Real' DLLs or AX things ?

If it is 'real' DLLs then you might have faulty declarations, or the
DLLs themselves might be buggy.


ActiveX DLLs - I picked up some sample code that creates a wrapper
round a third-party Mapping ActiveX that's a major part of my project.
The sample project that I downloaded works fine, but the wrapper DLL
seems to be causing problems in my own project.


Ok, for a start put : Option Explicit: DefObj A-Z
at the top of every Form, BAS module Class etc
- it may make something jump out of the woodwork

If that does not solve the problem (and it probably will not, but it
is good practise) then examine /all/ API Calls very carefully.
A faulty definition can give just such problems

Stick in Error Handling and see whether anything jumps out

I prefer On Error Resume Next, and to check everywhere for an Error,
but you would be wise to start off with On Error Goto

If none of these work, then backup your App (ideally on a floppy) and
start hacking out chunks
These problems can be very hard to isolate, you may have to 'emulate'
the core AX control to see whether that is what is causing the
problem.

..... also it would be wise to do some sort of check to ensure that you
do not have mismatched DLLs or OCXes
- I'm not sure what the best method of doing that is under XP

I expect that AX Control came with a little setup utility, it is
possible that it has poisoned your setup.
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: James Hu | last post by:
This program is long. I don't really want to bore everyone with the details, but it handles wierd cases like: /\ * this is a comment *\ / #define FOO ??/* this is not a comment */ char...
6
by: Ken | last post by:
When running a program in the debugger, what would cause it to crash without any error messages? I get "The program has exited with code 0 (0x0)". The program is a MDI app with threading for...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
18
by: sam_cit | last post by:
Hi Everyone, int main() { printf("not included stdio.h"); } Yes, i haven't included stdio.h and my compiler would generate a warning and would assume that it would return a int, my question...
41
by: z | last post by:
I use Visual C 2005 to develop my programs. One in particular is crashing in very specific and hard to replicate situations, made worse by the fact it only crashes when run -outside- the dev - as...
4
by: eskimo | last post by:
Hello I have a situation, my program has a crash (SIGSEGV) for a reason that I don't know yet. I tried to analyze it using Valgrind but when I invoke the program with Valgrind, the crash no longer...
13
by: Thomas Neubauer | last post by:
Hello, i am learning c# and have created now a simple project that just creates 6 random numbers. My form includes a button and 6 labels for the random numbers. The program seems to work...
41
by: simonl | last post by:
Hi, I've been given the job of sorting out a crash in our product for which we have the crash information and an avi of the event (which can't possibly match but more of that later...) (btw this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.