Re: using oracle client in C++ with Visual Studio 2005



On Jun 27, 6:36 pm, laurent <laurento...@xxxxxxxxx> wrote:
On Jun 27, 7:56 am, "Martin T." <bilbothebagginsb...@xxxxxxxxxx>
wrote:





On Jun 26, 6:07 pm, laurent <laurento...@xxxxxxxxx> wrote:

On Jun 26, 11:42 am, sybrandb <sybra...@xxxxxxxxx> wrote:

(snip)

i have a complete client. i actually tried a few of them. Instant
client and the one delivered with oracle XE both include a dll
(OCI.dll) which depends on the wrong version of the miscrosoft
runtime library, and cause random failures of my application, when an
object allocated by the old runtime gets freed in the new runtime. My
application builds and runs most of the time but random crashes are a
show stopper.

Laurent

Thats why you don't allocate memory in one module and deallocate it in
another.

this is hard to do when a library returns a pointer to an object it
has allocated for you.


Brrrr. :-) Well, maybe you can create a simple wrapper dll that links
to the same dll as the OCI.dll and supplies a ociFree(void*);
function, that just calls free() so that the correct one is used ...

If the OCI.dll needs this, then it's a crappy interface. (Yes, I know,
not very helpful here, sorry.)
Maybe you can come up with a workaround where the memory stuff is kept
to each module.

working around stupid APIs is becoming the main part of my job since
the powers that be decided microsoft and oracle were the way to go.


Well. If it'd be simple everyone could do it ... ;-)

good luck!
Martin

.



Relevant Pages

  • Best practise for raising/propagating errors?
    ... VB, ASP, SQL Server, Oracle etc. ... Just starting a new C# project (a DLL and a Windows service to call it) ...
    (microsoft.public.dotnet.csharp.general)
  • Re: About protected memory in COM(in-process)
    ... But I mean that the COM dll is doing exactly the same thing whether it's VB ... We use Oracle OLE DB providerns to connect to the database. ... We have tried to reproduce the protected memory error when running the code ... Release on the interface pointer. ...
    (microsoft.public.vc.atl)
  • RE: oracle import- and export-commands are contained in which .dll fil
    ... "Fritz Theiss" wrote: ... therefore my plan is to use specific dll as resource dll inside my code. ... i do want want to install oracle client tools containing the ... or does anyone having any sample code available providing the imp- and ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Setup 10G to access external DLL on windows2000 - ORA-06520: PL/SQL: Error loading exter
    ... > external procedure before so the help is greatly appreciated. ... > there is an issue with the DLL itself? ... > Here is how i setup and called the extern proc in the db ... If it's not statically linked Oracle will not load it. ...
    (comp.databases.oracle.server)
  • 2nd Request: Oracle 8 Personal Edition
    ... Since the Oracle.dll is definitely where the install driver is located, ... I assume that the Oracle.dll can't hook up with the dll in $ORACLE_HOME. ... I tried to google for "'Failed to load Oracle extension' Oracle" ...
    (perl.dbi.users)