Re: Ok in IDE but fails when run as an EXE



You could try changing the build options to generate symbolic debug info in
the EXE, and then debug it with an external C debugger. Interpreting the
resultant stack may need a bit of thought but it might give you a few more
clues.

Tony Proctor

"Peter Jones" <PeterJones@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8DA5F4C9-522D-4CFF-9B22-AC46134B4761@xxxxxxxxxxxxxxxx
> Hi,
>
> I have an app that works ok in the VB6 (VS SP6) IDE but fails when
compiled
> and run as an EXE. It fails with a can't read memory error on line that
says:
>
> Set Object1 = Object2
>
> I'm trying to track down the reason for this and I was wondering if anyone
> can point me to a resource that explains the difference between executing
> under the IDE and executing under the VB runtimes. I know I've come across
> such a document in the past but now can't find a reference to it.
>
> Let me just explain my problem in more detail to see if anyone can help in
a
> more specific manner. The app VB6 / SQL Server that has been fine for a
long
> time. Part of it is a program that maintains a whole stack of control
tables
> and we used a program generator called Shoutsoft (ComExpress) to create
the
> code and this is where the problem is. Our main processing programs work
fine
> it is just this ComExpress generated code. The error line (Set Object1 =
> Object2) is using custom objects built by the ComExpress generator, i.e.
> something I have no control over.
>
> Existing clients are Windows 2000/2003 based and work fine but we are
> installing in 2 new sites that are Windows 2003/SP1 based. It is SP1 that
> stops the ComExpress app from working. The symptoms are the app starts ok
but
> as soon as form is selected it will either exit with no error or a memory
> read error without anything getting in the event log.
>
> Any help would be greatly appreciated.
>
> TIA Peter
>


.



Relevant Pages

  • Re: Mobile Service & Auto Start
    ... SYSTEMTIME is declared wrong. ... have never needed to write an app like this and I just figured ... just very dumb about the CeRunAppAtTime call and why it may not ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... registry Init key is not going to work reliably. ... have never needed to write an app like this and I just figured ... I just played with what exe inits ... just very dumb about the CeRunAppAtTime call and why it may not ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)
  • Re: Mobile Service & Auto Start
    ... Like I go in and change the owner information then use the RegRestoreFile ... SYSTEMTIME is declared wrong. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)