Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Sisusupport, Renate.Reinartz, Markus.Kreisel, Ilkka.Salmenius
New Topic Reply Printer Friendly
problem with latest release? - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Tue Jan 23rd, 2018 10:34 am
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
hi,
i have a strange problem presenting itself with some clients...

if the application needs to be translated, it crashes the second time the application starts...
the app has embedded translation dll which are extracted at the start of the app
so if i delete the .FR file before start all goes well, the app starts...
but at the second start the app crashes with an error saying a resource can't be found
if i then delete the .FR file all goes well again...

i also saw that the .FR file does not have a version number any longer, could that be the problem?

tia,
Marc

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jan 23rd, 2018 11:36 am
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
i've played around with the project settings and it seems that checking "copy all resources" in the 'resource file' tab, solves the problem....
but this also doubles the resource file dll ...

so what is changed in the latest sisu version (4.0 build 370) that could cause this behaviour?

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jan 23rd, 2018 01:12 pm
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
this is the source line which AV's

Shadow.Texture.LoadFromResource(FindResourceHInstance(hInstance), 'CXEVENTSHADOW', 'PNG')

it's Devexpress components loading a graphic so it looks like

now 'PNG' is excluded from the project in the 'resources ' tab of the project...

this wasn't a problem until now
now means:
- upgraded to latest version of sisulizer
- the use of the devexpress sheduler component which results in loading this resource....

so why does the resource vanishes when the resource dll gets loaded?

Back To Top PM Private Upload Quote Reply

 Posted: Tue Jan 23rd, 2018 01:24 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3238
Status: 
Offline
Hi,
The logic to load the resources at runtime are in the VCL code completely. The resources created by Sisulizer do not have any code that could change behaviour at loadtime.

Did you recently update devexpress and/or Delphi?

If loading the resource does not work every second time (while the resource files do not change) there must be someting in the system causing the issue. Perhaps the resource file becomes locked by the system and it not unlocked after the application ends?
Anyway I also asked R&D if there was a change in Sisulizer or if they have an idea.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 24th, 2018 07:10 am
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
hi Markus,
i can only say what i've said :)
it's either something in the way sisu makes it's dll OR devexpress does something fishy
now i'm pretty sure the problem arose with the use of the scheduler component of devex...

BUT if i check the option to 'copy all resources' then the problem isn't an issue any longer, which makes me wonder if it is some kind of pointer issue or so...

the 'PNG' resources are excluded from the project...

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 24th, 2018 09:32 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Monschau, Germany
Posts: 3238
Status: 
Offline
Hi,

Yes, that can be tricky. The fallback mechanism if a resource is not complete. It is also part of the VCL code. The only running code by Sisulizer you can have at runtime is when you use the classes for the runtime language switch. These are pretty good tested in countless Delphi applications.

Scheduler component: does it have some own background scheduler? Or does it link a dll or something to some other scheduler. Something that works in the background?

The good part for now is, that you found a work-around. These issues can be very tricky - but I'm repeating :-)

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 24th, 2018 11:29 am
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
scheduler component: it is a calender gui component so no dll loading
never had any problem with having an incomplete resource dll until now...
should i report Embarcadero as well?

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jan 24th, 2018 11:53 am
PM Private Upload Quote Reply
drwho
Member
 

Joined: Fri Feb 8th, 2008
Location:  
Posts: 116
Status: 
Offline
update: devex said to eliminate this call:
FindResourceHInstance
which is a system function
deleting that solves the problem too...

Back To Top PM Private Upload Quote Reply

Current time is 11:41 am  
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > problem with latest release?



WowUltra modified by Sisulizer Copyright © 2007-18 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Impress - Privacy statement

Sisulizer software localization tool - Three simple steps to localize