Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI (https://www.delphipraxis.net/208813-kernelbase-dll-raiseexception-00000105-matlab-delphi.html)

bernhard_LA 16. Sep 2021 16:56

KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI
 
Wir haben eine Matlab Anwendung welche über ein C Programm auf in Delphi geschriebene DLL's zugreift.
Bei einem Kunden tritt jetzt eine KERNELBASE.dll+00216793 RaiseException+00000105 auf,
wie kann ich diesen Fehler debuggen ?

Macht Delphi hier was falsch, wir haben nur diesen Post hierzu gefunden https://stackoverflow.com/questions/...l-studio-is-no



Delphi-Quellcode:

Fault Count: 1


Abnormal termination:
Unknown exception 0xeedfade

Register State (from fault):
  RAX = 00000000045e2b90  RBX = 00000000cf67d530
  RCX = 000000002c5aca40  RDX = 0000003200000002
  RSP = 000000002c25acb0  RBP = 000000002c25ad90
  RSI = 00000000ce694582  RDI = 00000000c88a410d
 
   R8 = 000004e4192a4aa8   R9 = 00007ff9714ac238
  R10 = 000000002c25a920  R11 = 0000000000000000
  R12 = 0000000000000003  R13 = 000000002c25b2d0
  R14 = 00000000ce660000  R15 = 00000000ce9a2340
 
  RIP = 00007ff96ebf4ed9  EFL = 00000202
 
   CS = 0033   FS = 0053   GS = 002b

Stack Trace (from fault):
[  0] 0x00007ff96ebf4ed9                 C:\WINDOWS\System32\KERNELBASE.dll+00216793 RaiseException+00000105



This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

Andreas13 16. Sep 2021 17:03

AW: KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI
 
Hallo bernhard_LA,
hast Du nachgeschaut, ob alle Delphi-Exports der DLL nach C-Konvention als StdCall deklariert sind?
Gruß, Andreas

TurboMagic 16. Sep 2021 19:48

AW: KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI
 
Noch eine Idee: hast du MadExcept oder Eureka Log und kannst es in die DLL einbinden?
Diese dann evtl. mit vollen Debug Logs compilieren und testen.

Wenn's an der Speicherverwaltung liegt mal die "vollversion" von FastMM4 runterladen
und dort in der inc-Datei den FullMemoryScan einschalten.

Macht die Sache zwar sehr langsam, ermöglicht aber das Auffinden von
Speicherüberschreiben etc.

bernhard_LA 17. Sep 2021 09:08

AW: KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI
 
unsere Vermutung : #00000105 ist der Delphi File access error
im Admin Mode läuft unsere Delphi DLL via Matlab & C++ Interface

TiGü 17. Sep 2021 14:20

AW: KERNELBASE.dll RaiseException+00000105 MATLAB + DELPHI
 
Zitat:

Zitat von bernhard_LA (Beitrag 1495029)
unsere Vermutung : #00000105 ist der Delphi File access error
im Admin Mode läuft unsere Delphi DLL via Matlab & C++ Interface

Da steht eigentlich in aller Kürze was du wissen musst:
https://stackoverflow.com/a/32077795

Einfach mal alle exportierten Funktionen mit try-except ummanteln und die Fehler wegloggen zur weiteren Auswertung.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz