Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

All my apps crash when using app.major & app.minor & app.revision in about

0 views
Skip to first unread message

Atreju

unread,
May 11, 2001, 9:26:48 AM5/11/01
to
Hello all,

So far every one of my programs has exhibited the following problem:

When the exe is compiled, I usually store it in the same network
directory where my project files are.

In pretty much all of my apps, I have an about box form, where I have
the following code in the form_load()
lblTitle.caption = "My application version " & app.major & "." &
app.minor & "." & app.revision

Well, this is nice and fine when I run the program from within the
IDE, but when I run the executable, and load the about box, I get a
crash. Runtime error '326' Resource with identifier 'VERSION' not
found. I hit ok, and get an illegal operation:
<APPLICATION> caused an invalid page fault in
module <unknown> at 0000:00000000.
Registers:
EAX=00000000 CS=017f EIP=00000000 EFLGS=00010246
EBX=0063fa82 SS=0187 ESP=0063f9f0 EBP=0063fa50
ECX=004089ef DS=0187 ESI=00008aa6 FS=582f
EDX=81797f80 ES=0187 EDI=0063fa34 GS=0000
Bytes at CS:EIP:
01 00 00 00 65 04 70 00 16 00 22 05 65 04 70 00
Stack dump:
004089ef 00000a30 00000018 00000000 00000000 0063fa38 00008aa6
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000

This always happens when my exe is on my network where my project
files are. It does NOT happen for some reason, when I use a msgbox
instead of an about box (sometimes with a really small utility I am
too lazy to make a whole form just for 5 words).

Finally it does not happen when I transfer the program to my C drive,
and sometimes it does or does not happen when I put the exe somewhere
else on my network.

PLEASE help!!!
PS Micro$oft has no results when I search for "runtime error 326" -
kind of like whenever I search for absolutely anything else in their
knowledgebase... 99/100 times I get no results, but if I am referred
to a specific article # from someone, magically all the keywords I
searched for are there in the article, yet when I searched they came
up nil.

Clear, dark skies to all.
-Atreju-
40.727966N
73.819530W

Bart Lateur

unread,
May 11, 2001, 9:49:42 AM5/11/01
to
Atreju wrote:

>So far every one of my programs has exhibited the following problem:
>
>When the exe is compiled, I usually store it in the same network
>directory where my project files are.
>
>In pretty much all of my apps, I have an about box form, where I have
>the following code in the form_load()
>lblTitle.caption = "My application version " & app.major & "." &
>app.minor & "." & app.revision
>
>Well, this is nice and fine when I run the program from within the
>IDE, but when I run the executable, and load the about box, I get a
>crash. Runtime error '326' Resource with identifier 'VERSION' not
>found.

Well, just a thought: version info is generally stored in a resource of
the executable. A few API instructions can extract it. Daniel Appleman
makes a big deal out of it in his VB API book. The DLL viewer of
Windows can show it, too.

So I think that for some reason, your version info isn't stored in the
executable. Or, perhaps this app is looking at the wrong executable?

Now, your guess is as good as mine, as to how that could come.

--
Bart.

0 new messages