GPF in ORA_FFI.LOAD_LIBRARY
From: Henrik Bachmann <hbachman_at_sunpool.cs.Uni-Magdeburg.DE>
Date: 1996/03/07
Message-ID: <4hnh1h$hsf_at_dali.cs.uni-magdeburg.de>#1/1
We used ora_ffi.load_library to obtain a library handle and then we had a GPF:
Date: 1996/03/07
Message-ID: <4hnh1h$hsf_at_dali.cs.uni-magdeburg.de>#1/1
We used ora_ffi.load_library to obtain a library handle and then we had a GPF:
lh_window := ora_ffi.load_library(NULL,'krnl386.exe'); GPF: F45RUN : DE15WIN.DLL - 0097:BAD7 Another Error occured when we substituted 'NULL' with the search path for the library:
lh_window := ora_ffi.load_library('C:\WINDOWS\SYSTEM','krnl386.exe'); -- or lh_window := ora_ffi.load_library('','krnl386.exe');
Error: exception when others then sqlerrm(sqlcode): -304500 User defined Function
We are using Forms45 (4.5.6.3.3 and WfW3.11). Is anybody out there with a good idea or trick? I hope so.
Henrik
This sample is from the Oracle Forms Advanced Techniques Manual:
/* Declare a library handle to the Windows 386 Kernel */
!!!!! lh_window := ora_ffi.load_library(NULL,'krnl386.exe'); !!!!!
/*
Register the components of WritePrivateString This is function prototype for WritePrivateProfileString: BOOL WritePrivateProfileString(LPCSTR lpszSection, LPCSTR lpszEntry, LPCSTR lpszString, LPCSTR lpszFilename) */ fh_wpps := ora_ffi.register_function(lh_window, 'WritePrivateProfileString', ora_ffi.PASCAL_STD); ora_ffi.register_return(fh_wpps,ORA_FFI.C_SHORT); ora_ffi.register_parameter(fh_wpps,ORA_FFI.C_CHAR_PTR); ora_ffi.register_parameter(fh_wpps,ORA_FFI.C_CHAR_PTR); ora_ffi.register_parameter(fh_wpps,ORA_FFI.C_CHAR_PTR); ora_ffi.register_parameter(fh_wpps,ORA_FFI.C_CHAR_PTR); ------------------------------------------------------------------------------- E-Mail: Anschrift: ------- ---------- Henrik.Bachmann_at_relay.boerde.de Henrik Bachmann hbachman_at_eva.cs.uni-magdeburg.de Willi-Bredel-Strasse 11 39120 Magdeburg -------------------------------------------------------------------------------Received on Thu Mar 07 1996 - 00:00:00 CET