0

I am maintaining a VB6 application and it was working fine until this morning when a System.OutOfMemoryException gets thrown. Here is the scenario:

The EXE is a VB6 application that utilizes a .NET 2.0 DLL for certain methods (validation methods mainly).

I run into this problem when it calls two of the validation methods in the same if statement as such:

If oCommon.IsHWHeat(Model) And oCommon.IsEHeat(Model) then ...

But if I call each validation method individually it has no issue.

Not sure how to get this working.

Thanks

Deanna
  • 23,400
  • 7
  • 68
  • 152
  • 1
    Your question is very vague - the best I can really do is point you in the direction of [How To Diagnose A System.OutOfMemoryException?](http://stackoverflow.com/questions/3700490/how-to-diagnose-a-system-outofmemoryexception) which will give you some pointers on how to diagnose these sorts of errors. – Justin Aug 07 '12 at 13:08

1 Answers1

1

Apparently the issue was with Windows 7. I decided to manually delete the .NET dll, re-paste it, and then re-register it then it worked just fine. I think that since all I did before was copy it from the build directory to the references directory of my VB6 application (overwriting the file that already existed) then registered it, Windows did not do a complete overwrite for some reason so the file was corrupted.

Thanks, Chris

P.S. The question seemed vague because the error is very vague. I explained it as best as possible given the information that I had.