Data Error Event Hit Error Application-defined
360 games PC games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
from GoogleSign inHidden fieldsSearch for groups or messages
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start http://www.vbforums.com/showthread.php?399122-Error-handling-or-missing-dependency-file viewing messages, select the forum that you want to visit from the selection below. https://www.owasp.org/index.php/Error_Handling,_Auditing_and_Logging Results 1 to 38 of 38 Thread: Error handling or missing dependency file? Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Apr 13th, 2006,10:15 AM #1 frayne View Profile View Forum Posts Thread Starter Member Join Date Mar 2003 Posts 48 Error handling data error or missing dependency file? Please would some kind soul help me out. When I try to run my application on some P.Cs I get some error messages. These are to do with an access database that is incorporated into the application. When I try to load the database form I get a Data err hit event. If I cancel and try to proceed I get error 91 I have used data error event ********** and have added VB_DCOM_MDAC_Jet autosetup but to no avail. If I add VB6 to these PCs everything runs O.K So, is my problem an Error handling problem or am I missing a dependancy file? I use an ADODB.Connection. This is the code on my Database form which was produced using VB6 data form wizard. Private Sub cmdAdd_Click() Data1.Recordset.AddNew End Sub Private Sub cmdDelete_Click() 'this may produce an error if you delete the last 'record or the only record in the recordset Data1.Recordset.Delete Data1.Recordset.MoveNext End Sub Private Sub cmdRefresh_Click() 'this is really only needed for multi user apps Data1.Refresh End Sub Private Sub cmdUpdate_Click() txtFields(4).text = (miles(2).text * 1760) * 60 + (yards(3).text * 60) Data1.UpdateRecord Data1.Recordset.Bookmark = Data1.Recordset.LastModified End Sub Private Sub cmdClose_Click() Unload Me Me.MousePointer = vbDefault End Sub Private Sub Command1_Click() Crystal1.Show End Sub Private Sub Data1_Error(DataErr As Integer, Response As Integer) 'This is where you would put error handling code 'If you want to ignore errors, comment out the next line 'If you want to trap them, add code here to handle them MsgBox "Data error event hit err:" & Error$(DataErr) Response = 0 'throw away the error End Sub Private Sub Data1_Reposition() Screen.MousePointer = vbDefault On Error Resume Next 'This will display the current
Debug errors 6.3 Exception handling 6.4 Functional return values 7 Detailed error messages 7.1 How to determine if you are vulnerable 7.2 How to protect yourself 8 Logging 8.1 Where to log to? 8.2 Handling 8.3 General Debugging 8.4 Forensics evidence 8.5 Attack detection 8.6 Quality of service 8.7 Proof of validity 8.8 Logging types 9 Noise 9.1 How to protect yourself 10 Cover Tracks 10.1 How to protect yourself 11 False Alarms 11.1 How to protect yourself 11.2 Denial of Service 11.3 How to protect yourself 12 Destruction 12.1 How to protect yourself 13 Audit Trails 13.1 How to determine if you are vulnerable 13.2 How to protect yourself 14 Further Reading 15 Error Handling and Logging Objective Many industries are required by legal and regulatory requirements to be: Auditable – all activities that affect user state or balances are formally tracked Traceable – it’s possible to determine where an activity occurs in all tiers of the application High integrity – logs cannot be overwritten or tampered with by local or remote users Well-written applications will dual-purpose logs and activity traces for audit and monitoring, and make it easy to track a transaction without excessive effort or access to the system. They should possess the ability to easily track or identify potential fraud or anomalies end-to-end. Environments Affected All. Relevant COBIT Topics DS11 – Manage Data – All sections should be reviewed, but in particular: DS11.4 Source data error handling DS11.8 Data input error handling Description Error handling, debug messages, auditing and logging are different aspects of the same topic: how to track events within an application: Best practices Fail safe – do not fail open Dual purpose logs Audit logs are legally protected – protect them Reports and search logs using a read-only copy or complete replica Error Handling Error handling takes two forms: structured exception handling and functional error checking. Structured exception handling is always preferred as it is easier to cover 100% of code. On the other hand it is very hard to cover 100% of all errors in languages that do not have exceptions, such as PHP 4. Code that covers 100% of