So, with the above approach, I take it that you would not have ANY code in the Form_Load event Sub, right? If so, where else, and since I need to put the GUI setup in the Form_Activate, where else can I put the "main program functioning"? Why would Form_Activate be >different? Also, once the GUI is setup in Form_Activate, most of the rest of the functionality of the program is done also in the Form_Activate, and once that code is done, the have a peek at these guys
Wouldn't this "Setup" still need to be called > >from within some event Sub? > If it is a single Form App then I would set the App to start from: Click on OK to terminate the program Cancel to debug.. thanks, anastacia Reply With Quote Jul 3rd, 2005,09:27 AM #7 penagate View Profile View Forum Posts Lurker Join Date Jan 2005 Location Everywhere Posts 13,651 Re: The memory could not be But not able to catch the error. http://www.bleepingcomputer.com/forums/t/441640/memory-reference-error-in-vbexe/
I also tried doing that and I'm sill having the problem. I've had those lines in place all along and the problem still occurs. I apologize for the confusion.James Back to top #11 James Litten James Litten ¿Ԁǝǝ˥q BC Advisor 1,928 posts OFFLINE Gender:Male Location:New Jersey Local time:08:57 AM Posted 13 February 2012 - The > memory could not be "read". > or > The instruction at "0x0000000x" reference memory at > "0x0000000y".
As you finish projects in Quip, the work remains, easily accessible to all team members, new and old. - Increase transparency - Onboard new hires faster - Access from mobile/offline Try CONTRIBUTE TO OUR LEGAL DEFENSE All unused funds will be donated to the Electronic Frontier Foundation (EFF). The final outcome appears to be that there must've been something fishy going on with my original code, where I was doing most of the processing in the Form_Activate event. It doesn't really matter what I choose since there are not debuggers installed on the test machine and when I select debug it gives me a message that it will have
Removing all code from the Form_Activate event, and into the Form_Load, seems to have eliminated the problem completely (I haven't gotten to J French's suggestion of using Sub Main yet...sorry). Jim Fri, 04 Nov 2005 08:40:50 GMT J Fren#6 / 15 : VB6 Problem: "The memory could not be "read"/"written""
What do you recommend for a tool to clean the registry. I also have the same opinion as billy when it comes to vb6. http://support.microsoft.com/default.aspx?scid=kb;en-us;214427 http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20314957.html 0 Comment Question by:jlininger Facebook Twitter LinkedIn https://www.experts-exchange.com/questions/20881518/VB6-EXE-Application-Error-The-instruction-at-0x0306116a-referenced-memory-at-0x0306116a-The-memory-could-not-be-read.htmlcopy LVL 2 Best Solution bymjwills jlininger, 1. And install Sp6 also.
I'm now cleaning up my re-write, to get things looking right in the GUI, and will test the new program tomorrow in the office (it DOES work here on my home/test By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Why do manufacturers detune engines? As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged
I, and others, have occasionally reported strange things that disappear when one does something trivial like shunting code around. http://gsbook.org/memory-could/mod-the-memory-could-not-be-read-error.php BLEEPINGCOMPUTER NEEDS YOUR HELP! API's are designed for any language, but the thing about VB and VBA is that they use a runtime library which manages things such as threading. MenuExperts Exchange Browse BackBrowse Topics Open Questions Open Projects Solutions Members Articles Videos Courses Contribute Products BackProducts Gigs Live Courses Vendor Services Groups Careers Store Headlines Website Testing Ask a Question
Typically such an access might be caused by dereferencing a uninitialized pointer, though I'm not sure how such would happen in VB. It shouldn't be your program doing it, it's pretty much impossible to trigger a GPF in a VB program if you don't call any API functions (with the rare exception of A straight forward solution to this is to simply uninstall visual studio 6 or VB 6 (if you've only vb 6 installed), restart your computer and then reinstall visual studio 6. check my blog Or, putting it another way, what could my > program (or one of the COM wrappers, or one of the DLLs) be doing that > would cause the program to access
VB does not support multi-threading. I also guess that "great minds think alike". Trying to access through a smart pointer that has already been freed (and set itself to NULL to ensure that an error would result predictably), most likely.
The memory could not be "read". End vs. How would people living in eternal day learn that stars exist? I spent most of this weekend commenting/uncommenting sections of code to try to figure out what the problem was, and I got to the point where I did get it to
Billy3 Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?) Back to top #10 James Closing the app via file/exit or simply the "x" and then the error pops up. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. news variety of calls to database and program logic ...'close the database connection before exitingcnDBConnection.CloseSet cnDBConnection = NothingAnd the connection routine GetDBConnection:Code:'Function to return an ADO connection to the database, given the
Any help! IME these have turned up a couple of times within Events ... Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We If you are experiencing a similar issue, please ask a related question Suggested Solutions Title # Comments Views Activity Problem to delete range 4 57 150d VBA Excel: Copy Data from
What are you trying to do? What happens is a something (probably a COM object or part of one) gets cleaned up twice on exit and the second time it throws an INVALID_HANDLE_VALUE error. If you want to launch a new thread, you'll have to use C++. I've also tried compiling to pcode, but that did the same thing (blew up, that is).
something like: Public Sub Main() Dim F As Form Set F = New MyForm F.Setup 'assume all of my "mainline" I've tried removing the 2.5 reference and using the latest ADO version on my (win 2003) machine which is 2.8 and still no luck.Thanks,Andy | Post Points: 5 bednarjm St. Ugh. Jim Sat, 12 Nov 2005 07:16:28 GMT J Fren#15 / 15 : VB6 Problem: "The memory could not be "read"/"written""