Timer tick won't raise

D

Diego F.

Hello. I'm migrating a VB6 application and I found a strange problem.

The project is compiled in VB.NET 2005. The application loads making some
checks, a database connection, and then waits until a timer raises a tick
event. Well, in that point the application stops. I don't know why. The
event doesn't raise up and the application closes without passing by close
events.

Sometimes I get that error when running step by step:

Attempting managed execution inside OS Loader lock. Do not attempt to run
managed code inside a DllMain or image initialization function since doing
so can cause the application to hang.

Any idea?
 
R

Robin Tucker

Hi Diego,


Loader-lock is a managed debugging assistant designed to detect deadlock
issues between managed and unmanaged code. I suspect you have a badly
behaved 3rd party control on your form (in my experience this is the no.1
cause). For more information, google for LoaderLock MDA.




Robin
 
D

Diego F.

Robin Tucker said:
Hi Diego,

Ok, I have a timer component that was already done and is imported. Could
that be the problem? (It's not the timer that doesn't rise)
 

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