Re: system access violation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




On startup, the program accesses the registry to fetch the password for
login, then proceeds to
display the password input dialog and then the program loads. If I try to
load a second copy of the
program..

Before the second copy can display the password dialog, the system access
violation
message pops up and then the first program aborts.

Found that I had checked the following project option:


Make single instance application
^^^^^^^^^^^^^^^^^^^^^^^^^^
Select this check box to prevent users from running multiple instances of
your application. The default setting for this check box is cleared,
allowing multiple instances of the application to be run.
^^^^^^^^^^^^^^^^^^^^^^^^^^^

It quit crashing after I unchecked it.. Kind of ineligant way to prevent a
second copy to run.

Sooo I unchecked the box & now test for application presence on the desktop
using a boolean in the registry.



"Me" <gene1943@xxxxxxxxx> wrote in message
news:1158479253_17561@xxxxxxxxxxxxxxxxxxxxxxx

Am new to vb dotnet and although I like what I've seen sofar, I
am experiencing pblms with system access violation "attempt to read write
protected memory".

This error happens when I open a second copy of the program.

Any help appreciated in finding the source for this error or preventing a
second copy
of the program drom being loaded.






----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption
=----





----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.



Relevant Pages

  • Re: system access violation
    ... display the password input dialog and then the program loads. ... Before the second copy can display the password dialog, ... allowing multiple instances of the application to be run. ...
    (microsoft.public.dotnet.general)
  • Re: Configuation screen
    ... a particular value in registry and kill this process and boot my main ... process and display them graphically. ... machines, ie the number of sensors can be different on each machine type, the ... use the same set of sensors for each vehicle type. ...
    (microsoft.public.windowsce.embedded)
  • Re: PNG
    ... Red X Instead of Images - Can't see or save Images/Pictures ... "UseHR" registry value is added to the registry. ... These are the steps for changing the DPI setting on your system. ... Right-click the Windows desktop to display the context menu. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: jpg / gif images smeared on IE6-Outlook6
    ... Check the registry associations for the image file types. ... >I posted before on the issue of not seeing graphics properly on the IE 6 ... > Change the DPI setting from Large to Normal and see if that helps. ... > Right-click the Windows desktop to display the context menu. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Slowing Record Navigation
    ... If you modify the Registry as Bob mentioned to stop the display of the ... "loading Image" dialog then you will no longer crash as you scroll through ...
    (microsoft.public.access.modulesdaovba)