SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TsiLangLinked not being created when form is loaded

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Fri Sep 08, 2006 2:55 am    Post subject: TsiLangLinked not being created when form is loaded Reply with quote

I'm using TSILang 6.02 and CBuilder 6. I have one form in my application that has a problem. This form is not automatically created, but is created by the application on demand with a new and displayed with ShowModal.

This form contains a TsiLangLinked component whose Dispatcher and CommonContainer properties are set by the object inspector to point to a TsiLang instance in the main form.

When the form is created and ShowModal called, I set values for form fields in the FormShow method. At this point, the variable that should point to a TsiLangLinked instance is null. So my calls to
siLangLinked->GetTextOrDefault crash.

I don't understand why I'm having this problem, and any ideas for troubleshooting would be greatly appreciated. What could possible cause this?
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2096

PostPosted: Fri Sep 08, 2006 3:32 am    Post subject: Reply with quote

I can suggest to check the following:
1. Varaiable and component names you use. May be TsiLangLinked has different name that you try to use with GetTextOrDefault() and or you have some variable named the same as TsiLangLinked.
2. May be in some place of your code you delete the TsiLangLinked accidentally? And later in FormShow it is nil.
Back to top
View user's profile Send private message
pls



Joined: 09 Feb 2004
Posts: 13
Location: Phoenix, AZ, USA

PostPosted: Sat Sep 09, 2006 3:07 am    Post subject: Reply with quote

I've checked both of those. This is a very simple form so I can be sure I'm not doing those things.

If you will email me at the address on my profile, I will respond by mailing you the form and the code that creates it. There isn't that much.

I also just checked in the constructor of my form object (derived from TForm). The siLangLinked1 variable is null there too. It seems like somthing is going wrong in the process of creating the form. I've tried deleting the TsiLangLinked component from the form and then adding it back with a different name. It made no difference.

++PLS
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2096

PostPosted: Sat Sep 09, 2006 3:23 am    Post subject: Reply with quote

PM just sent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group