vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Mails senden, abrufen und decodieren - ganz easy ;-)  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

ActiveX-Programmierung
Re: Access Violation 
Autor: Kurt
Datum: 06.11.01 10:50


> Poor object cleanup, circular object references, or a 3rd party dll/ocx
that
> is behaving poorly are my first thoughts.
>
>
> I don't have any recommendations on tools but steeping through the
> application termination should lead to the problem object. Every
class/form
> can have a termination event, if so, step through it. If modular level
> object references are not being cleaned up here then problems may arise.
> The projects main object or form should clean up any global object
> references. Also, if objects are Dimmed 'As New' this practice can lead to
> problems as the object can never be de-referenced. This is always a bad
> practice as you always want to be able to set the object reference to
> nothing and then clean it up manually - No Exceptions Period!
>
> Bad:
> '--- Instantiation code
> Dim oRs As New ASL_RARS_CTS2000.Recordset
>
> '--- Clean up code
> N/A
>
>
> Good:
> '--- Instantiation code
> Dim oRs As ASL_RARS_CTS2000.Recordset
> Set oRs = New ASL_RARS_CTS2000.Recordset
>
> '--- Clean up code
> Set oRs = Nothing
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Access Violation124Kurt Huwiler31.10.01 17:12
Re: Access Violation83Kurt06.11.01 10:50

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel