Jump to content
dkprojektai

Exception - figure where?

Recommended Posts

Hello, need some help to find out where exception rises (it rises not every time, usually after some time processing). Here is the code:

 

77473b31 ntdll.dll                             KiUserExceptionDispatcher
757ce699 KERNELBASE.dll                        CreateFileW
0076ab2a ANPRl.exe OtlParallel    3440 TOmniParallelSimpleLoop.Execute_2__ActRec._0_Body
0076a716 ANPR.exe OtlParallel    3380 TOmniParallelSimpleLoop.CreateForTask_ActRec._0_Body
00741717 ANPR.exe OtlTaskControl 2008 TOmniTaskExecutor.Asy_Execute
0074071e ANPR.exe OtlTaskControl 1592 TOmniTask.InternalExecute
007404f6 ANPR.exe OtlTaskControl 1510 TOmniTask.Execute
00732fa2 ANPR.exe OtlThreadPool   889 TOTPWorkerThread.ExecuteWorkItem
00732b29 ANPR.exe OtlThreadPool   846 TOTPWorkerThread.Execute
004d8625 ANPR.exe System.Classes      ThreadProc
0040b9a0 ANPR.exe System              ThreadWrapper
76dffa27 KERNEL32.DLL                          BaseThreadInitThunk

Can someone to explain?

Share this post


Link to post
Guest
3 hours ago, dkprojektai said:

where exception rises

Where is easy to see, it is in CreateFileW

 

3 hours ago, dkprojektai said:

Here is the code:

That is not a code but stack dump.

 

Where is your code with CreateFileW, and what is the message of the exception exactly ?

 

It is hard to force CreateFileW to raise an exception, but in all cases it is in the parameters, so it either a parameter pointing to invalid address or the code is feeding it wrong file name encoded something between PChar, PWChar and PAnsiChar, show that line with parameters types along with what Delphi version you are using.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×