title: ole32.dll causes GPF. How to interpret DebugDiag report?
body: <p>My app (<a href="http://www.easyjob.net" rel="nofollow noreferrer">EasyJob</a>) causes an access violation error on exiting. This only happens on some systems, mostly Vista, but it has happened on some XP boxes. The application is written in VB6.</p>
  
  <p>After finding a system that shows this behavior, I ran DebugDiag  on my process and got this report:</p>
  
  <pre>
  Function                            Arg1        Arg2        Arg3
  0x04246c81                          726c7fc8    778bf188    0012fea4
  ole32!CoDisconnectObject+55         726c7fc8    00000000    00000002
  msvbvm60!BASIC_CLASS_Release+10b2d  00000002    013e07cc    727ae518
  msvbvm60!TipUnloadProject+df2       013e08dc    013e07cc    727ae470
  msvbvm60!EbResetProjectNormal+1a54  00000000    00000000    00000000
  </pre>
  
  <p>In easyjobpro__PID__5240__Date__05_18_2009__Time_09_24_01PM__619__Second_Chance_Exception_C0000005.dmp the module C:\Windows\System32\ole32.dll has caused an access violation exception (0xC0000005) when trying to write to memory location 0x726c7fc8 on thread 0</p>
  
  <p>OK, so it  looks like it's OLE32.dll that is causing this, but how can I fix it???? O:-)
  <p>Is there a way to get a longer stack trace so I can actually see what part of my code started this thing? It seems to be related with some class being unloaded (BASIC_CLASS_Release), but how do I find out which  one?
  <p>Anybody knows why this might be happening mostly on Vista?
  <p>This stuff is driving me nuts, so ANY help would be GREATLY appreciated. Seriously, I'll buy you a beer no matter where you are. O:-)</p>