Crash while exiting only on Windows 98

E

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
 
E

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top