You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am upgrading a Delphi application that uses DLL libraries. I have upgraded the application and DLLs from XE2 to 11.3. For this, I included the latest VCL Styles utils. The application and DLLs set styles. I put the set style functionality in a common unit and used it in both applications and DLLs. Following is the function for set style.
`Procedure LoadStyle();
var
UserStyle : String;
FullUserStyle : String;
Begin
// Check Style in User Registry.
UserStyle := GetLocalUserStyle();
FullUserStyle := Format( '%sStyles%s.vsf', [ExtractFilePath(Application.ExeName), UserStyle] );
if FileExists( FullUserStyle ) then
TStyleManager.SetStyle(TStyleManager.LoadFromFile(FullUserStyle));
End;`
This function is called at initialization of that common unit.
The issue is that my application crashes when a DLL is being used. The DLL has a dialog to show and also has another functionality.
Can you please help me to investigate what could be the issue?
The text was updated successfully, but these errors were encountered:
Hi,
I am upgrading a Delphi application that uses DLL libraries. I have upgraded the application and DLLs from XE2 to 11.3. For this, I included the latest VCL Styles utils. The application and DLLs set styles. I put the set style functionality in a common unit and used it in both applications and DLLs. Following is the function for set style.
`Procedure LoadStyle();
var
UserStyle : String;
FullUserStyle : String;
Begin
// Check Style in User Registry.
UserStyle := GetLocalUserStyle();
FullUserStyle := Format( '%sStyles%s.vsf', [ExtractFilePath(Application.ExeName), UserStyle] );
if FileExists( FullUserStyle ) then
TStyleManager.SetStyle(TStyleManager.LoadFromFile(FullUserStyle));
End;`
This function is called at initialization of that common unit.
The issue is that my application crashes when a DLL is being used. The DLL has a dialog to show and also has another functionality.
Can you please help me to investigate what could be the issue?
The text was updated successfully, but these errors were encountered: