This content has been marked as final. Show 4 replies
What are you actually trying to do in your SDI Application ? I've used OO4O in an SDI App without any problems.
The code you provide above seems to serve no purpose as you are calling OShutdown() in your InitInstance method. This means that OO4O will be uninitialised before your Application even starts.
Thanks for your reply.
I just made this simple program in order to explain my accss violation problem.
Although OShutdown() is in ExitInstance(), same problem is generated.
Is there any reason why you are using an OSession as apposed to an ODatabase.
I have never used an OSession directly as creating an ODatabase object also creates a default OSession for you.
Try using an ODatabase instead.
I was doing the same thing as you...just trying stuff out. Let the O[whatever] objects go out of scope before you call OShutdown. OShutdown is trying to delete memory allocated by the ODatabase & ODyanset..etc objects...but if they are still in scope, you will get access violation...