ttamturk Posted November 18, 2014 Posted November 18, 2014 Hi, I am using Delphi EX7 and unigui which is 0.98.0.1108. This problem occurs only when i build my dll and put it under a webserver. Here is what i do; - Create a new project - Put a TUniImage on MainForm - Click Picture property and load a picture from a PNG file. - Run application as an EXE, - Test it - Everything is working fine. Then - Make same project an isapi dll - Put it under a working server - Test it - NO IMAGE Why? Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 It maybe because your server can not create cache image file due restricted folder permissions. Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 Look under cache folder. You must be able to see your PNG image inside one of the sub folders. Quote
Hayri ASLAN Posted November 18, 2014 Posted November 18, 2014 I've had this problem before. I am loading image with loadfromfile(uniservermodule.startpath + imagepath) (Ex. files/img.png) Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 It maybe because your server can not create cache image file due restricted folder permissions. No, i have permission and same system working properly before. Look under cache folder. You must be able to see your PNG image inside one of the sub folders. No, there is no image. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 I've had this problem before. I am loading image with loadfromfile(uniservermodule.startpath + imagepath) (Ex. files/img.png) That's a solution for one or two images. I don't want to do that for all picture on my project. Thanks. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 I think this is a bug, not a general discussion and i think it's related to new version of unigui which is 98, because it's working fine with 97 as i remembered. Best Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 I think this is a bug, not a general discussion and i think it's related to new version of unigui which is 98, because it's working fine with 97 as i remembered. Best Of course, if you provide us a test case which can demonstrate the bug your report will be moved to bug reports or even fixed immediately. There is no general report about this behavior and I can not reproduce your issue with steps you provided above. Please send a simple test case. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 Of course, if you provide us a test case which can demonstrate the bug your report will be moved to bug reports or even fixed immediately. There is no general report about this behavior and I can not reproduce your issue with steps you provided above. Please send a simple test case. Do you have XE7 installed? Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 Sure Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 Sure Hmm, if you have XE7 installed and you couldn't create same problem maybe it's related to something else, because as you see i don't do anything specific. But, let's try if there is something wrong. I attached a project from my system. If you can try this on a web server and it shows logo then there is something about my system. PS: I am using DevExpress too, maybe it's related to it's Cross-Platform Icon library plug-in. I'll check. Project1.rar Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 I generally test on XE4. I will test yours and report back. BTW, you can try to see if it is related to PNG only, or it happens with other formats such as JPG too. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 I generally test on XE4. I will test yours and report back. BTW, you can try to see if it is related to PNG only, or it happens with other formats such as JPG too. Ok, I disable Devexpress but problem is still occurs. I will test other formats too, ok. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 Hi, Jpeg is not working too. I try to change DefaultImageFormat and GlobalImageCache property but it seems they are not related with this problem. By the way i am using XE7 with UPD 1 but it's not working before i update to UPD 1 so XE7 will be enough i guess. Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 Your project running in our server: https://prime.fmsoft.net/demo/prj.dll Compiled with XE4. 64-Bit Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 I attached my test project. Project1.rar Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 Your project running in our server: https://prime.fmsoft.net/demo/prj.dll Compiled with XE4. 64-Bit I told you it's not XE4, It's XE7 which i have problem with. If you have time you can connect to my computer. After running same dll, Image source on my browser; <img width="337" vspace="0" hspace="0" height="201" src="/edm.dll/ext-4.2.2.1144/resources/themes/images/gray/tree/s.gif"> Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 I will test with XE7 too. Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 This means blank image. i.e. no picture is assigned to uniImage. Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 Works in XE7 too. Send me your compiled dll. Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 This means blank image. i.e. no picture is assigned to uniImage. So, but image assigned and working fine when running as stand alone server? Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 I have no idea. Do you assign image at runtime or design time? Quote
ttamturk Posted November 18, 2014 Author Posted November 18, 2014 I have no idea. Do you assign image at runtime or design time? Design-time! if i assign images at run-time there is no problem. Quote
Administrators Farshad Mohajeri Posted November 18, 2014 Administrators Posted November 18, 2014 Pls give me access to your server. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.