The program freezes - no errors, no exceptions

I am writing a program to clear data from IMDB using the IMDB scrambling API. It works wonderfully, but sometimes .. it just stops. No exception is raised, there is no error, nothing is displayed in intellitrace, it cannot find the reason why it stops. And this is interesting, because the point where it stops is completely random!

So, for example, if I run it, it successfully flushes the data 100 times, but if I restart it, it will get stuck after 50. I really have no idea why it does it.

If I paused the code, if it got stuck, it doesnโ€™t write anything (for example, it will work fine without any errors) (or I just donโ€™t notice it). The green marker on the left is on

IMDb imdb_movie = new IMDb(link, false); 

Source code can be found here.

Any ideas? Thanks, go ahead!

+4
source share
1 answer

This sounds like an error in the API you are using. I'll take it with the developer or upload the class file that it provides so that you can debug it yourself. If you installed the DLL without a source, you will get a green arrow while pausing while the ID environment is waiting for the external code to complete, but if you add the class file to your project, then you can go and see where it gets stuck.

In addition, itโ€™s fundamental: Why regex is probably a bad idea here ...

+1
source

All Articles