11-05-2013 01:11 PM
I'm using the WinAPI to read a listbox from an non-LabView application. For the get item text message I need to supply a pointer to available memory to place the returned string.
If the factor is to low then LabView Crashes. Typically 200 string characters (100 unicode). Not enough memory, memory overrun, crash (ntdll.dll error). If on the other hand I increase it to much (2 * 1024 = 2048) LabView crashes as well.
What the hell is going on here? My labview app needs to run unattended for days reading hundreds of thousands of text lines and until I understand what's happening I'm just rolling dice. The listbox can have hundreds of lines of text but I only allocate the memory once and reuse it in a for loop containing the Send Msg.
TIA Norm.
Solved! Go to Solution.
11-05-2013 03:09 PM
Can you share your code (the VIs, not just a screenshot)? Are you calling WinAPI functions through Call Library Function Node? If so, try changing the error checking level to maximum, and see if that gets you a more helpful error message instead of a crash. While it won't fix the problem, it might lead to a solution.
11-05-2013 05:37 PM
I'm using the G toolkit by George Zou. I don't have the source for the send msg vi but I am asuming he uses CINs using user32.dll. If I'm lucky he will pop in on this thread.
08-14-2014 11:39 AM
08-14-2014 11:42 AM
George Zou was kind enough to build this example for his toolkit.
07-29-2021 08:55 PM
Hi Viper,
Can you share with me ? Now I am just try to achieve it?your example is that i need.Could you shard the example ?
thank you.