Code Comments
Programming Forum and web based access to our favorite programming groups.I am trying to compile an old program. I have successfuly compiled same programe many times in the past. But I have tried several times today to compile the same progame and I keep getting this error .... VB6 program error The Instruction at 0x056b78259 referenced memory at 0x05b7829. The memory could not be read. Click OK to terminate the program, Click Cancel to debug. This happens when the compiler finishes "compile" amd is "creating exe" The only thing I did to the app was edit one or two lines in a sub. And the other thing I did today was "Windows update" By the way, my other vb App compiles Ok on the same machine. Anyone have idea what is causing this problem? I googled but nothing came up on this error.
Post Follow-up to this messageCheck the project, vb exe and temp folders to ensure no intermediary compile files remain (I believe they have a .obj extension). -- Randy Birch MS MVP Visual Basic http://vbnet.mvps.org/ ---------------------------------------------------------------------------- Read. Decide. Sign the petition to Microsoft. http://classicvb.org/petition/ ---------------------------------------------------------------------------- "JoeO" <jp3bless_NoSpam@hotmail.com> wrote in message news:%23Ncr784SFHA.2880@TK2MSFTNGP10.phx.gbl... : : I am trying to compile an old program. I have successfuly compiled same : programe many times in the past. But I have tried several times today to : compile the same progame and I keep getting this error .... : : VB6 program error : : The Instruction at 0x056b78259 referenced memory at 0x05b7829. The memory : could not be read. Click OK to terminate the program, Click Cancel to debug. : : This happens when the compiler finishes "compile" amd is "creating exe" : : The only thing I did to the app was edit one or two lines in a sub. And the : other thing I did today was "Windows update" : : By the way, my other vb App compiles Ok on the same machine. : : Anyone have idea what is causing this problem? I googled but nothing came up : on this error. : : : : : :
Post Follow-up to this messageThanks Randy. I deleted all .obj files and other temp files... I tried to compile and got the same error ... and the compiler recreated the .obj files all over. Still stuck. "Randy Birch" <rgb_removethis@mvps.org> wrote in message news:e0JSQX5SFHA.2124@TK2MSFTNGP14.phx.gbl... > Check the project, vb exe and temp folders to ensure no intermediary compile > files remain (I believe they have a .obj extension). > > -- > > Randy Birch > MS MVP Visual Basic > http://vbnet.mvps.org/ > -------------------------------------------------------------------------- -- > Read. Decide. Sign the petition to Microsoft. > http://classicvb.org/petition/ > -------------------------------------------------------------------------- -- > > > > "JoeO" <jp3bless_NoSpam@hotmail.com> wrote in message > news:%23Ncr784SFHA.2880@TK2MSFTNGP10.phx.gbl... > : > : I am trying to compile an old program. I have successfuly compiled same > : programe many times in the past. But I have tried several times today to > : compile the same progame and I keep getting this error .... > : > : VB6 program error > : > : The Instruction at 0x056b78259 referenced memory at 0x05b7829. The memory > : could not be read. Click OK to terminate the program, Click Cancel to > debug. > : > : This happens when the compiler finishes "compile" amd is "creating exe" > : > : The only thing I did to the app was edit one or two lines in a sub. And > the > : other thing I did today was "Windows update" > : > : By the way, my other vb App compiles Ok on the same machine. > : > : Anyone have idea what is causing this problem? I googled but nothing came > up > : on this error. > : > : > : > : > : > : >
Post Follow-up to this messagei ma getting the same error..although i did not do a windows update but I di d install office XP professional i will try reinstalling vb -- Gaurav Creations "JoeO" wrote: > Thanks Randy. I deleted all .obj files and other temp files... I tried to > compile and got the same error ... and the compiler recreated the .obj fil es > all over. > > Still stuck. > > "Randy Birch" <rgb_removethis@mvps.org> wrote in message > news:e0JSQX5SFHA.2124@TK2MSFTNGP14.phx.gbl... > compile > -- > -- > memory > came > > >
Post Follow-up to this messageHmmmm, I wonder why this is happening... anyone have any idea? "Gaurav - http://www.gauravcreations.com" <gauravcreations@hotmail.com> wrote in message news:592A8EF9-A277-4578-8AA7-BCC3D78CDBD5@microsoft.com... > i ma getting the same error..although i did not do a windows update but I did > install office XP professional > > i will try reinstalling vb > > -- > Gaurav Creations > > "JoeO" wrote: > to files > -------------------------------------------------------------------------- > -------------------------------------------------------------------------- same today to to exe" And
Post Follow-up to this messagei reisntalled VS and then applied service pack 5 .. it seems to have been solved now -- Gaurav Creations "JoeO" wrote: > Hmmmm, I wonder why this is happening... anyone have any idea? > > "Gaurav - http://www.gauravcreations.com" <gauravcreations@hotmail.com> > wrote in message news:592A8EF9-A277-4578-8AA7-BCC3D78CDBD5@microsoft.com.. . > did > to > files > same > today to > to > exe" > And > > >
Post Follow-up to this messageDo you compile from within the IDE or from the command line? Try the other method. Sometime I get such effects in one compile mode, but not in the other. Maybe fiddling around with the compile flags may also help (turn off optimization for example) Robert "JoeO" <jp3bless_NoSpam@hotmail.com> wrote in message news:%23Ncr784SFHA.2880@TK2MSFTNGP10.phx.gbl... > > I am trying to compile an old program. I have successfuly compiled same > programe many times in the past. But I have tried several times today to > compile the same progame and I keep getting this error .... > > VB6 program error > > The Instruction at 0x056b78259 referenced memory at 0x05b7829. The memory > could not be read. Click OK to terminate the program, Click Cancel to debug. > > This happens when the compiler finishes "compile" amd is "creating exe" > > The only thing I did to the app was edit one or two lines in a sub. And the > other thing I did today was "Windows update" > > By the way, my other vb App compiles Ok on the same machine. > > Anyone have idea what is causing this problem? I googled but nothing came up > on this error. > > > > > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.