For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2005 > Compile Error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compile Error
JoeO

2005-04-28, 3:56 am


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.






Randy Birch

2005-04-28, 3:56 am

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.
:
:
:
:
:
:

JoeO

2005-04-28, 3:56 am

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 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.
> :
> :
> :
> :
> :
> :
>



Gaurav - http://www.gauravcreations.com

2005-04-28, 3:56 am

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:

> 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 files
> all over.
>
> Still stuck.
>
> "Randy Birch" <rgb_removethis@mvps.org> wrote in message
> news:e0JSQX5SFHA.2124@TK2MSFTNGP14.phx.gbl...
> compile
> --
> --
> memory
> came
>
>
>

JoeO

2005-04-28, 3:57 pm

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...
> i ma getting the same error..although i did not do a windows update but I

did[color=darkred]
> install office XP professional
>
> i will try reinstalling vb
>
> --
> Gaurav Creations
>
> "JoeO" wrote:
>
to[color=darkred]
files[color=darkred]
> --------------------------------------------------------------------------
> --------------------------------------------------------------------------
same[color=darkred]
today to[color=darkred]
to[color=darkred]
exe"[color=darkred]
And[color=darkred]


Gaurav - http://www.gauravcreations.com

2005-04-28, 3:57 pm

i 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
>
>
>

Robert

2005-04-28, 3:57 pm

Do 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.
>
>
>
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com