Resource errors in delphi - delphi

My project complied fine. But when I am running application in debug mode, I'm getting many runtime errors each time regarding resources. How can I resolve this?
EDIT
the Actual error is "project raised exception class EResNotFound with message 'Resource WW_DBN_PRIOR_ENABLED not found'

Related

EXCEPTION CAUGHT BY WIDGETS LIBRARY in flutter

When I run my code which is totally fine I get an error saying " EXCEPTION CAUGHT BY WIDGETS LIBRARY" and some parts of the app turns red I don't know why
[This is the code screenshot][1]
https://i.stack.imgur.com/zX5Qn.jpg

Codename One iOS build error with javax_annotation_Resource, java.lang.NullPointerException

We build iOS through codename one build server but always reply below error, however, it is successful and the application is well for android build.
Please advice what the error meaning and solution. We are wondering if it is about the native interface which cannot not be loaded, if so, please tell how to reload them?
Thanks and Regards,
Ronald Chan
Error while working with the class: javax_annotation_Resource
java.lang.NullPointerException at
com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable(ByteCodeClass.java:1295)
at
com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable(ByteCodeClass.java:1286)
at
com.codename1.tools.translator.ByteCodeClass.updateAllDependencies(ByteCodeClass.java:226)
at com.codename1.tools.translator.Parser.writeOutput(Parser.java:387)
at
com.codename1.tools.translator.ByteCodeTranslator.main(ByteCodeTranslator.java:205)
Exception in thread "main" java.lang.NullPointerException at
com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable(ByteCodeClass.java:1295)
at
com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable(ByteCodeClass.java:1286)
at
com.codename1.tools.translator.ByteCodeClass.updateAllDependencies(ByteCodeClass.java:226)
at com.codename1.tools.translator.Parser.writeOutput(Parser.java:387)
at
com.codename1.tools.translator.ByteCodeTranslator.main(ByteCodeTranslator.java:205)
Your code is using javax.annotation.Resource e.g. #Resource.
You compiled that code without Codename One or changed the classpath which results in our servers getting code that they don't support.

Unable to load delphi 7 project because of tlib70.bpl

I have a code which generated dll, but at the time of loading that project I am getting IDE exception as mentioned below :
Error loading type library/dll.
Its type is EInternalTypeLibraryException.
and exact message is:
An error occurred while referencing a user defined type. This may be caused by a missing or unregistered type library.

libc++abi.dylib: handler threw exception -- but no stack trace in XCode

I am using XCode 4.5 with LLVM. In older versions of XCode, when there was a crash it would give me meaningful debugging information. Lately I keep getting crashes that simply say "libc++abi.dylib: handler threw exception," and don't provide a stack trace that shows where the exception came from. This is totally useless to me. What are the proper debugging settings that I should set up so that I can find the location of the problem?
you could add a breakpoint and set it to break on all exceptions

Delphi app crashing outside debugger but not inside

Our DUnit project is crashing on exit. It crashes if "Run Without Debugging", but doesn't crash if I Run inside the debugger.
If I attach the debugger to the process after starting it, it does not crash on exit.
I suspected a problem in finalization, so I put print statements in all the finalization code I suspected was running. This turned up nothing useful. Finalization for one of our low level Units (with no dependencies on any non-system Units) is running correctly. So it still could be finalization, but it may not be.
The crash produces this dialog:
Problem signature:
Problem Event Name: APPCRASH
Application Name: MCLTesting.exe
Application Version: 0.0.0.0
Application Timestamp: 4eb07b50
Fault Module Name: kernel32.dll
Fault Module Version: 6.0.6001.18215
Fault Module Timestamp: 49953395
Exception Code: c0000005
Exception Offset: 000bf395
OS Version: 6.0.6001.2.1.0.256.6
Locale ID: 3081
Additional Information 1: b37c
Additional Information 2: 2a7328d8bb40c81c93b4b5f46adb8e10
Additional Information 3: b37c
Additional Information 4: 2a7328d8bb40c81c93b4b5f46adb8e10
"Exception Code: c0000005" Does that mean anything?
The main clue I have is the fact that it doesn't crash in the debugger. Has anyone seen that before?
I finally tracked this down.
The problem was indeed in a finalizer. A user exception was being thrown in a finalizer. The exception was not caught, and the exception itself was being leaked (The Exception and its string were not freed). It seems this memory leak was causing the crash? I'm not sure why I didn't notice this memory leak when I originally posted.
Catching the exception fixed the crash problem.
One interesting thing I found out is that even if an uncaught exception is thrown in a finalizer, subsequent Unit's finalizers will still be run. I was assuming that a problem in one finalizer would stop all subsequent finalizers from running.
The method I used to find the offending Unit was very simple; I removed all units from my project, then reintroduced Units one by one until I got the crash bug. Time consuming but it worked in the end.
Exception code c0000005 is an access violation. This usually means one of two things: either you're attempting to dereference a pointer or object reference that's set to nil, or you're working with corrupted memory.
The other pertinent piece of data in the error report is Exception Offset: 000bf395. That tells you where the error is occurring. Try looking up f395 in your map file and see if you can't find a unit finalization that corresponds to that memory offset. If so, that should give you a good idea as to what's going wrong.

Resources