|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Vsem privet! Est' nekii' DLL napisannyi na C. Applikatsiya napisannaya na PowerBuilder (8.0.2) ispol'zuet etot DLL. Applikatziya zapuskaetsya pod Windows 2000. Pri zapuske apllikatzii vyzyvaetstysya desyatok funktcij etogo DLL-ya. Programma zapuskaetsya bez problem. Teper' user s pomoshchyu programy delaet zapros v bazu dannyx (Oracle 8.1.7), poluchaet zaproshennye dannye v okne, najimaet knopku chtoby otrpavit' eti dannye po-email. Esli neskol'ko raz povtorit' eti deistviya to pri popytke ocherednogo zaprosa k baze dannyx poluchaem soobshenie ob oshibke "Select error ORA-12571, TNS packet writer failure". Export of DLL function sdelan v sootvetstvii s trebovanyami postroeniya DLL-ei dlya PowerBuilder. http://www.sybase.com/detail?id=47626 // function prototype in *.h file int __declspec( dllexport ) _stdcall myFunction1 (char *pStr); // *.DEF file EXPORTS myFunction1 =_myFunction1 @4 "Project Settings" for Win32 Debug ->C/C++ tab->Category "Code generation"->Struct Member Alignment changed from 8 bytes * (default) to 1 byte Esli PoweBuilder application zapuskaetsya bez vyzova functions of the DLL, to net nikakix problem pri tex je dejstviyax polzovatelya. Napominayu, chto vse DLL function vyzyvaetstysya tolko pri zapuske apllikatzii, kotoryi proxodit gladko. Problemy voznikayut pri vypolnenii kakix libo operatsii voobsche ne svyazannyx s vyzovom function of the DLL. Budu rad esli kto libo smojet pomoch' Zaranee blagodaren, Arkady ... |
|||
:
Нравится:
Не нравится:
|
|||
28.04.2004, 15:28 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
You've already read it at HTML manual, haven't you? TNS-12571 TNS:packet writer failure Cause: An error occurred during a data send. This message is not normally visible to the user. Action: For further details, turn on tracing and re-execute the operation. If the error persists, contact Oracle Customer Support. ... |
|||
:
Нравится:
Не нравится:
|
|||
28.04.2004, 20:23 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Of course, I have read it. Unfortunately the real problem does not relate to Oracle. Sometimes the error arise like the broken connection to the DB or to the mail server. It is only symptom of the real problem. Actually PowerBuilder application uses the DLL in order to get some data from the Mainframe. The communication with MF is done using the MQ Series. If another software (CPE) is used instead of MQ Series for this purpose the problem does not arise at all. It seems that the diifferent memory layout in CPE & MQ Series influents by some way on the PowerBuilder application, which uses the DLL. I have no idea where is the solution lay. Regards, Arkady ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 09:36 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
May be, you'd better describe the situation at a ORA's forum. "Next door" guys seemed quite reasonable. ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 11:04 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Продемонстрируйте Powerscript, зовущий ваш DLL ... ... |
|||
:
Нравится:
Не нравится:
|
|||
29.04.2004, 19:39 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
NewOne, I have placed my question to the ORA's forum too. No reply there :-(. Filipp, Dumayu chto problema ne v syntaxe PowerScripta. Esli by tam byli oshibki, to applikatsiya prosto ne podnimalas' by. Pri zapuske apllikatsii vyzyvayutsya neskol'ko funktsii DLL-lya i oni otrabatyvayut normal'no i vozrashayut trebuemye znachenia. Problemy voznikayu pozje, kogda funkcii DLL0a bol'she ne vyzyvayutsya. Razrabotchik applikatzii probowal zakommentirovat' vse vyzovy funktcii DLL-lya. Togda net nikakix problem. Delali my i takoi eksperiment. Vyzyvali odny function of DLL, kotorya nicheno ne delala (with empty body). Pri etom problema vosproizvodilas'. Regards, Arkady ... |
|||
:
Нравится:
Не нравится:
|
|||
03.05.2004, 16:56 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Раз вы "Dumayu", то зачем вопросы здесь задаете? ... |
|||
:
Нравится:
Не нравится:
|
|||
03.05.2004, 17:06 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Filipp, Vot 2 kusochak PowerScrpit-a: //======================================== // My DLL function declaration (to import it) //======================================== function int GetUserId(int index, REF string userId) Library "mylib55.dll" //======================================== // body of the functon that calls GetUserId() //======================================== String ls_userid integer li_index = 0 ls_userid = space(13) GetUserId( li_index, ls_userid) Return( ls_userid ) //======================================== Regards, Arkady ... |
|||
:
Нравится:
Не нравится:
|
|||
05.05.2004, 17:22 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
А space(13) хватает? Ну не важно, начнём сначала. 1) DLL с Ораклом разговаривает? 2) Есть ли какие нибудь попытки передавать DBHandle из РВ в DLL ? ... |
|||
:
Нравится:
Не нравится:
|
|||
05.05.2004, 19:52 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
>А space(13) хватает? Xvataet. Ну не важно, начнём сначала. 1) DLL с Ораклом разговаривает? Net. 2) Есть ли какие нибудь попытки передавать DBHandle из РВ в DLL ? Net. ... |
|||
:
Нравится:
Не нравится:
|
|||
06.05.2004, 08:49 |
|
Use of DLL written in C causes the error ORA-12571
|
|||
---|---|---|---|
#18+
Nashel istochnik nepriyatnostei. Bug byl v drugom DLLe , funkstii kotorogo vyzyvalis' iz "podozrevaemogo" DLLya. Tot vtoroj DLL ispol'zuet funktziona'nost'' Winsock2. Nekorrektnya initzializtiya Winsock2 privodila k probleme. Spasibo vsem za pomosch'! U vas prekrasno organizovannyi' forum!!! S uvajeniem, Arkady ... |
|||
:
Нравится:
Не нравится:
|
|||
17.06.2004, 09:59 |
|
|
start [/forum/moderation_log.php?user_name=iStrannik]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
get settings: |
12ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
154ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
1ms |
others: | 317ms |
total: | 590ms |
0 / 0 |