Sign in to follow this  

InvalidCallException problem

This topic is 4695 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I am developing a two form application in vb.net One form holds certain data about an object size, location etc, whilst the other is a directX screen to show the model. The reason i've done it this way is so that people can move the directX screen wherever they want on the desktop. Everything has gone well so far, but there is a big problem whenever the directX screen is slightly covered by another application. Let me explain what happens. Initially you can rotate the mesh around with the mouse by clicking and dragging on the DirectX screen. Then you move a window to partially obscure the window, everything is still ok. Then you click on the screen to rotate the model and the program give the InvalidCallException problem. I've stepped through the code and it performs the mouse down event but then exits after that. Oddly though it doesn't point to any line of code. Just to the start of the application. I'm using an NVIDIA Quadro4 750 XGL graphics card with 128mb. All the latest drivers are installed. Does anyone know whats causing this or how I can avoid it? Any help much appreciated. Cheers DRB2k2

Share this post


Link to post
Share on other sites
hmmmmmmm ok
It looks like it was being called due to a conflict in threads somewhere.
I have removed the threading and everything seems to work fine now.
For anyone that looks over this in the future I'm pretty sure that InvalidCallException is a general error, I've seen it twice now in completely unrelated places.

Thanks to anyone that looked into the problem for me.

Cheers
DRB2k2

Share this post


Link to post
Share on other sites

This topic is 4695 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this