Vitus
Resource contributor
- Messages
- 1,480
- Country

Hello friends,
I am currently running into a weird issue: if I compile my C++ project in debug mode, everything works fine. When I switch to Release, at least one of my L-vars doesn't work in one of the XML gauges. The variable in question is used both by an XML gauge as well as the DLL module. It gets set to a fixed value of 22 and won't change.
I ran into trouble with L-vars before and a previous solution was to get rid of some of them and taaaa-daaaaa, the rest behaves fine again. The weird thing now is that the problem only occurs when I compile a release version of the DLL. Does that make any sense to you?
My questions are: Is there a hard limit for the number of L-variables used in a project? If so, what is it?
Furthermore, how/why/when does an LVar ID get overwritten in the C++ module?
I am currently running into a weird issue: if I compile my C++ project in debug mode, everything works fine. When I switch to Release, at least one of my L-vars doesn't work in one of the XML gauges. The variable in question is used both by an XML gauge as well as the DLL module. It gets set to a fixed value of 22 and won't change.
I ran into trouble with L-vars before and a previous solution was to get rid of some of them and taaaa-daaaaa, the rest behaves fine again. The weird thing now is that the problem only occurs when I compile a release version of the DLL. Does that make any sense to you?
My questions are: Is there a hard limit for the number of L-variables used in a project? If so, what is it?
Furthermore, how/why/when does an LVar ID get overwritten in the C++ module?

