473,320 Members | 1,876 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,320 software developers and data experts.

Crash while exiting only on Windows 98

Elp
Hi,

I've a very strange bug happening in my application (done in C#). It only
happens with Windows 98, with either the .NET framework 1.0 or 1.1:

i'm creating the main form of the application (let's say that it's called
mainForm) and then displaying it with the usual:
Application.Run(mainForm);

In this form, i intercept the closing event because i need to do some clean
up before closing the form and then i call Application.Exit() to terminate
the application.

Under Windows 2000, XP and 2003, this works great, after the call to
Application.Exit(), the code after the Application.Run statement is executed
and the application closes.

But under Windows 98, the code after Application.Run is never executed after
having called Application.Exit() and the application either hangs or crashes
with a rather cryptic error message displayed by Windows (this is not an
exception caught by my code):

File Refcount.cpp, line 652
Build: v7.10 (07/08/02 11:27:29)
Expression: ! (i == idata->tdmap.end())

When i click OK on this message, the usual Windows message box appears:
"this program has performed an illegal operation and will be shut down". But
when i click Ok on this one, it keeps poping up again and again and forces
me to reboot the machine.

Have anybody an idea of what happens? Google seems to have never seen this
problem before!

Thanks
Jul 21 '05 #1
1 1200
Elp
Hi again,

an addition to mu previous post: i've just found out that the code after
Application.Run is actually properly executed even on Windows 98 but at the
end of the main funtion of the project, something happens that makes Windows
displaying those strange messages.

That's even more strange as the error messages actually appear when there is
no more code to execute! The program should be finished at that time. What
is happening after the end of the main function that could cause Windows to
complain?

Thanks.
Jul 21 '05 #2

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

Similar topics

4
by: arizvi | last post by:
Hi, My program crashes when it reaches a certain line. There is nothing wrong with that particular line as I have changed it to something simple like i=0, and it still crashes. If I remove...
1
by: tony | last post by:
hi. my NET application is using mixed c++ dll ( managed and unmanaged) in that dll , im calling api's of unamanged dll. my application crash with no exception or warning. its hard to...
3
by: Bonj | last post by:
When trying to debug an ASP.NET project by placing a breakpoint in one of the functions in the codebehind, VS correctly stops at the breakpoint, and I can step through. But soon after, the process...
1
by: Elp | last post by:
Hi, I've a very strange bug happening in my application (done in C#). It only happens with Windows 98, with either the .NET framework 1.0 or 1.1: i'm creating the main form of the application...
5
by: Al | last post by:
I have an MFC based application which uses remoting using VS05. On exiting the application, I intermittently get a crash at line 195 in dllmodul.cpp (AFX_MANAGE_STATE(&afxModuleState);) The...
1
by: s_schutte | last post by:
Here's my situation. I have an unmanaged C++ project that I am using to interface with the Lotus Notes C API. I then have a managed C++ project in the same solution that functions as a "C++...
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
6
by: Ant | last post by:
Hi all, I'm putting together a simple help module for my applications, using html files stored in the application directory somewhere. Basically it sets up a basic web server, and then uses the...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.