473,513 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL NOT FOUND (but only on certain systems???)

I have an application written in VB.NET that calls functions in a
FORTRAN .DLL. All compiled (release for VB.NET and FORTRAN), with
the .EXE and the .DLL and other support files all in the same folder.

On my PC it works absolutely fine. No issues whatsoever. It also
works perfectly on SOME (most?) other PC's in my area.

However, there are some PC's in my area where the .EXE simply refuses
to find the .DLL, despite the fact that the setup is identical (single
folder on the desktop that contains all necessary files). The .DLL is
in the same folder as the the .EXE. The error I receive is:

Unable to load DLL 'TEST.dll': This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem. (Exception from HRESULT: 0x800736B1)

Unfortunately, I am not able to debug the problem because it works
perfectly for everyone when I compile the .EXE and the .DLL in debug
mode.

Any suggestions? I am going crazy here... Thanks...
Nov 26 '07 #1
3 1917
"ags5406" <my**********@gmail.comwrote in message
news:77**********************************@y5g2000h sf.googlegroups.com...
>I have an application written in VB.NET that calls functions in a
FORTRAN .DLL. All compiled (release for VB.NET and FORTRAN), with
the .EXE and the .DLL and other support files all in the same folder.

On my PC it works absolutely fine. No issues whatsoever. It also
works perfectly on SOME (most?) other PC's in my area.

However, there are some PC's in my area where the .EXE simply refuses
to find the .DLL, despite the fact that the setup is identical (single
folder on the desktop that contains all necessary files). The .DLL is
in the same folder as the the .EXE. The error I receive is:

Unable to load DLL 'TEST.dll': This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem. (Exception from HRESULT: 0x800736B1)

Unfortunately, I am not able to debug the problem because it works
perfectly for everyone when I compile the .EXE and the .DLL in debug
mode.

Any suggestions? I am going crazy here... Thanks...
Is this an ActiveX dll? Is it registered correctly?
>

Nov 26 '07 #2

"ags5406" wrote:
I have an application written in VB.NET that calls functions in a
FORTRAN .DLL. All compiled (release for VB.NET and FORTRAN), with
the .EXE and the .DLL and other support files all in the same folder.

On my PC it works absolutely fine. No issues whatsoever. It also
works perfectly on SOME (most?) other PC's in my area.

However, there are some PC's in my area where the .EXE simply refuses
to find the .DLL, despite the fact that the setup is identical (single
folder on the desktop that contains all necessary files). The .DLL is
in the same folder as the the .EXE. The error I receive is:

Unable to load DLL 'TEST.dll': This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem. (Exception from HRESULT: 0x800736B1)

Unfortunately, I am not able to debug the problem because it works
perfectly for everyone when I compile the .EXE and the .DLL in debug
mode.

Any suggestions? I am going crazy here... Thanks...
I seem to remember a runtime dll that we needed to distribute like f77.dll
or f90.dll, that had to be installed into the \windows\system32 folder.
Occasionally we ran into issues with permissions installing there. It's been
years, and your environment may be quite different than we had at the time.
Isn't there some runtime library such as f77.dll or f90.dll that you need to
distribute with the
Nov 27 '07 #3
Not ActiveX.

There are Fortran runtime DLL's, and they are included in the
distribution.

There is definitely something very screwy going on. Last night I
updated the .TEXT of a label on one single form by adding ONE, just
ONE extra character.

For example, the lblTest.Text = "ABC" was changed to lblTest.Text =
"ABCD". Literally the only change I made to the code. Recompiled and
reran and then magically, all of a sudden, all of my problems have
disappeared. The package seems to work correctly on all PC's in my
area now.

One thing I did notice is that my executable increased in size from
1408 KB to 1552 KB. How or why adding one single character to the
code (which is hundreds of thousands of lines in total) could increase
the executable size by 10% is beyond me. And why adding one single
character to the code would fix a seemingly unrelated problem is also
beyond me.

Methinks I have a gremlin. I have always believed that "the program
only does what you tell it to do", but this is the first time I'm
starting to doubt that.

All of my projects are under source control (we use CVS), so I am able
to ensure which version I am using. I am able to REPEAT the problem
with the first executable and I am able to REPEAT the success with the
second executable (with the one extra character in the code).
Nov 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4575
by: TimS | last post by:
I am getting a baffling File not found error (0x800A0035). I am writing asp on a windows 2000 server. I build a path and filename from several fields in a jet database using SQL commands, like...
4
1882
by: Ken Fine | last post by:
No joy on Macromedia's boards after a few days; maybe someone can help me here. I got an excellent string handling function off of planet-source-code.com that converts text strings to proper...
4
2928
by: wongjoekmeu | last post by:
Hello All, >From a book where I have learned C++ it says that each application must have at least one function which is the main() function. Now I have the source code of a C++ program from...
5
1544
by: Les Stout | last post by:
Good day, I am not sure if this is the right forum for this question, but would appreciate any help. I have a spread sheet with a lot of rowws in, about 5000 and before i deleted a lot i had...
49
2198
by: Mal | last post by:
Hi, As I gain knowledge through a lot of trial, error, and usenet posts.. I have a potentially odd question. I am using a commercial access application. It is a front-end / back...
30
3690
by: jimjim | last post by:
Hello, This is a simple question for you all, I guess . int main(){ double *g= new double; *g = 9; delete g; cout<< sizeof(g)<<" "<<sizeof(double)<<" "<<sizeof(*g)<<" "<<*g<<" "<<endl; *g =...
8
1954
by: Frank | last post by:
Hello, I have usercontrol dll. If I reference it in the calling application with local copy=true it works fine. If I set local copy to false. I get an error saying the dll cannot be found. What do...
14
2902
by: NormD | last post by:
We have a client-server app using Web Services on an IIS machine. The trace below shows that .NET is searching around for some things (e.g., SystemDrawing.DLL and System.Drawing.EXE) and taking a...
2
1353
by: Lester | last post by:
I need a regexp function which makes a match when the string contains <img...AND the img tag above dows NOT contain a certain path Here is what I have: <img\s.*(src).+> This matches if my...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.