Symptoms
On a Visual Basic form, an OLE control is placed on a Microsoft TabbedDialog control. You write code to embed a file into the OLE control usingthe CreateEmbed method. When the user clicks the tab that contains the OLEcontrol, one of the following errors occur and the application terminates:

VB5 caused an invalid page fault in module TABCTL32.OCX at0137:212f8b26.-or-

<Project Name> executed an invalid instruction in module OLE32.DLL at0137:65fa93ae.-or-

Exception: Access violation (0xc0000005), Address: 0×212f8b26
Resolution
To work around this problem, do one of the following:Place the OLE control inside a Frame control.
-or-Make the Tab that contains the OLE control the active tab before usingthe CreateEmbed method.