Image Decoders Fail in DLL - major issue for my application

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Image Decoders Fail in DLL - major issue for my application

Post by halo »

I have a serious problem. I am using PureBasic to create a texture browser DLL for my main program. The problem is that the program fails to load any image other than a bitmap, when compiled in a DLL. It works fine as an executable.

There seems to be some weird interaction that causes the decoders to fail when some other DLL's are called (also PureBasic), but it usually works on its' own. There is no pattern I can find, and the error doesn't really seem to be dependent on my code, but rather, just the way PB does things internally.

I am requesting a better method to force use of the image decoders. I am presently loading the image in the main program, then creating a new PB image, and copying the pixels, but this method is very slow. I have been developing this program for months, and now I am looking at the possibility of it being potentially crippled because of this issue I cannot control.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I take it you are using all the *Decoder() procedures?

If you can provide some source that outlines the problem I'm sure someone can make a suggestion (or a bug report!).
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

That's just it. It is impossible to reliably produce the error in a single source code. It only fails when I use it within my program, which calls half a dozen PB DLL's.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

Is this product dead or what? This problem is going to cost me a lot of money.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Is what product dead?

You just said that you can't reproduce the problem you see. Perhaps it isn't a problem with PB at all? It sounds like the project you speak of is pretty large, so the problem could be many places..

What exactly happens? You say it fails, but you don't say how, when or with what image. Can you provide some source code or even an image that causes it to fail?

If you can provide some circumstance or code that defines the problem I'm positive someone will fix it. I have several image manipulation programs working very well, written in PB, using the encoders and decoders native to PB.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

I can't reproduce it because the same DLL will work sometimes, then not work when other DLL's are called. I have noticed that PureBasic DLL's sometimes interfere with each other when used in one program.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Can you show any examples of this happening? Again, nothing can be done if all this is just speculation. Fred and company need working examples (or, rather, broken ones)!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

I'll try to put something together. It will take a while to test.
Post Reply