topic
stringlengths
1
63
text
stringlengths
1
577k
lost memory with images in xBrowse
Hey Marcelo -good to see you around. Have you tried assigning NIL to the object and then calling garbage collection? [code=fw:3kex1rzl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrwG := <span style="color: #00C800;">Nil</span><br />hb_GCAll<span style="color: #000000;">&#40;</span> .t. <span sty...
lost memory with images in xBrowse
Dear Reinaldo, thanks very much for response, my problem with xBrowse is when I navigate between rows, if I change from an image to other (row to row) in the xBrowse, the memory go up until the system go full. I can add some extra info, this occur when the graphic format is other than bmp, stored in a ADT table Than...
lost memory with images in xBrowse
Hello, from here [url:3pxk81y5]https&#58;//www&#46;box&#46;com/s/3851fr0ehpjlt1h4qbw3[/url:3pxk81y5] you can download a self-contained sample (sorry is a little big). To see what I want to show, open the windows TASK PANEL go to the memory monitoring, open the test.exe, go to the last image in the xbrowse go back, go...
lost memory with images in xBrowse
Hi. I confirmed the problem. I wrote my own tests using a dbf/fpt/cdx table. It does the same. Using Marcelo's example you can simply keep pressing arrow down on the last image. It goes nowhere, as it has nowhere to go, but it keeps consuming more and more memory until it finally freezes. This points to a probl...
lost memory with images in xBrowse
[quote="reinaldocrespo":q300ce5m]Hi. I confirmed the problem. I wrote my own tests using a dbf/fpt/cdx table. It does the same. Using Marcelo's example you can simply keep pressing arrow down on the last image. It goes nowhere, as it has nowhere to go, but it keeps consuming more and more memory until it finally...
lost memory with images in xBrowse
Mr. Rao; It is always possible that the problem is not with xbrowse itself but rather the destroy mechanism being used to destroy the image. Did you try Marcelo's example? It is a short-self-contained sample. The table only contains 4 images. Open the task manager and monitor the amount of memory being consumed by...
lost memory with images in xBrowse
Hi. Can anyone else, please, confirm this problem? You may use the self-contained-reduced sample posted by Marcelo on this thread. If you prefer an even simpler sample using dbf/cdx, I will gladly write one. Thank you, Reinaldo.
lost memory with images in xBrowse
I confirmed the problem Maurizio
lost memory with images in xBrowse
Hola Marcelo podrias colocar el código como grabas en un campo IMAGEN lo pregunto porque yo grabo tambien en campo image pero cuando lo veo en el data arquitec no se me ven las imagenes, solo aparecen codigo extraño [b:2odjsxx4]ÿØÿà[/b:2odjsxx4] pero en mi programa si funcionan las imagenes utilizo imagen jpg de 6...
lost memory with images in xBrowse
Hola Patricio, I use imagenes -> ( ADSFile2Blob( cFile, "imagen", 7 ) ) where ADS_BINARY 6 /* BLOB - any data */ ADS_IMAGE 7 but we can use this other simple method imagenes -> imagen := MEMOREAD( cFile ) By the way, some body know how can we save an image using pure SQL Patricio, disculpa que es...
lost memory with images in xBrowse
Marcelo /Patricio; Grato ver la pregunta. Saving an image, or anything else for that matter, is best done via pure SQL. To save images, I prefer to use a binary field instead of a memo field. Here is some actual code (a bit reduced): [code=fw:2pny4j45]<div class="fw" id="{CB}" style="font-family: monospace;"><br /...
lost memory with images in xBrowse
Any fixes available yet? Anyone working on solving this problem? Reinaldo.
lost memory with images in xBrowse
Reinaldo, first thanks for sharing your code about SQL and data types. I don't know if some body have or need to work with images in xBrowse, I hope Mr. Rao will have some time to solve this issue un abrazo Marcelo
lost memory with images in xBrowse
Hello, sorry, to be present only I hope Fivetech take imporntance about this bug regards Marcelo
lost memory with images in xBrowse
Marcelo/Everyone; Hi. I think I hear crickets chirp. Not a good sign. I guess it is only the two of us saving images to a blob field that are later shown on an xbrowse? Or everyone else is living with the problem and simply accept that the application must be shutdown frequently? This is indeed a bug and an easy ...
lost memory with images in xBrowse
Reinaldo, does this happen also if you read the bitmaps from disk. Best regards, Otto
lost memory with images in xBrowse
Otto, sorry, let me response your question, if you test the xbimg.prg sample (from sample folder) you will that this sample dosn't lost memory, then I think the problem is when the images come from DB. best regards Marcelo
lost memory with images in xBrowse
Hello, are there some news about this bug? or your think that this functionality is useful best regards Marcelo
lost memory with images in xBrowse
We are working on this issue.
lost memory with images in xBrowse
Mr. Rao thanks very much best regards Marcelo
lost memory with images in xBrowse
I hate to bring this issue back to the foreground. I just hope there is progress. Reinaldo.
lost memory with images in xBrowse
Please apply this fix to image.prg Towards the end of the function FILoadFromMemory() in the Image.prg, please insert the line [code=fw:ed3lz9de]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;FIUNLOAD<span style="color: #000000;">&#40;</span> hDib <span style="color: #000000;">&#41;</s...
lost memory with images in xBrowse
Fixed in FWH 13.01
lost memory with images in xBrowse
Mr. Nages; It seems like it does fix the problem. Thank you very much. Reinaldo.
lowbyte y calcxor
Necesito dos funciones que hagan lo siguiente: 1.- lowbyte: Tiene que extraer los 8 bit (byte) de menor orden de un valor de 16 bits. 2.- calcxor: Calcula el or exclusivo de un caracter. No tengo ni idea de como hacerlo.
lowbyte y calcxor
Puedes usar las funciones de FWH nAnd( nVal, 255 ) --> nLowByte y para el CalcXor puedes usar la función nXor( Asc( caracter ), nVal2 ) --> nVal
lowbyte y calcxor
Para el lowbyte creo que es más sencillo usar el operador módulo % #define LowByte( x ) => ( x % 256 ) Saludos, Carlos.
lpassword for numeric get
Dear All, I need to set password to hide data.. with oGet:lPassword := .T. //char type works OK [u:cg9em8ml]but in numeric type it's not.[/u:cg9em8ml] How to do in in numeric get? Regards, Frances
lpassword for numeric get
You need to convert the numeric value as character string and GET and take its VAL() after the get.
lpassword for numeric get
Dear Mr. RAO, not ideal for so many get object (numeric type).. If I changed the Style via RC the get object is forever as password I cant change on the fly to go back to normal get.. in m,y app, some user must not see confidential data so need to hide it as password get.. maybe to change text/background as one colo...
lpassword for numeric get
Dear RAO, It's much better this way.. if data hidden from certain user - oGet:oGet:Picture := "XXXXXXX.XX" - oGet:Disable() else -oGet:oGet:Picture := oGet:cPicture - oGet:Enable() endif Regards, Fraxzi
lpassword for numeric get
Fraxzi, I'm not clear. What does the picture "XXXXXXX.XX" do to the display? James
lpassword for numeric get
Dear James, The picture 'XXXXXXX.XX" on the numeric get will replace the display value to "XXXXXXX.XX" instead of "9999999.99" or say a value of 12,999.45 This is a workaround since oGet:lPassword := .T. works only for char type. This is selective scenario wherein some user must not see that field value. If I change...
lpassword for numeric get
Francis, Thanks for the clarification. If you are using a database object you could modify the Load() method to blank out any fields that were not authorized for the current users security. The advantage to this is that the database object could be used anywhere without the restricted data showing (e.g. dialogs, brow...
lpassword for numeric get
Dear Mr. James, Thank you for the added info. I appreciate it. I will look into database object.. my alias are from SQL 'select' I will try it with database object. Right now, I am using variable to manipulate fields from SQL Alias. I will compare. Regards, Frances
lpassword for numeric get
[quote:37gxpk5o]The picture 'XXXXXXX.XX" on the numeric get will replace the display value to "XXXXXXX.XX" instead of "9999999.99" or say a value of 12,999.45 [/quote:37gxpk5o] Nice idea <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
lpassword for numeric get
Francis, Are you using recordsets or a SQL database driver? If recordsets, then I am not sure you can do what I suggested. Hmm. With a recordset you might be able to create a record class that would read from the recordset and filter out the secure fields. This would work with a dialog, but it would really slow down ...
lpassword for numeric get
Mr. RAO, Thanks.. sometimes, things are discovered accidentally when most needed.. <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> [quote="nageswaragunupudi":r4eayge8][quote:r4eayge8]The picture 'XXXXXXX.XX" on the numeric get will replace the di...
lpassword for numeric get
[quote="James Bott":1hwm0ouw]Francis, Are you using recordsets or a SQL database driver? If recordsets, then I am not sure you can do what I suggested. Hmm. With a recordset you might be able to create a record class that would read from the recordset and filter out the secure fields. This would work with a dialog, b...
límite de variables Locales
Hola: ¿Cuál es el límite de variables locales?. Me pasa que cuando me excedo de 200 y pico el programa se vuelve tonto, pues me pasa a ejecutar la siguiente opción que yo no la llamo. Muchas gracias <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
límite de variables Locales
???? No hay limite para variables LOCALES. Al salir del módulo dice: ACTIVATE DIALOG oDlg... RELEASE ALL
límite de variables Locales
Segun tengo entendido... el solo hecho de salir de la Funtion o Procedure que "contiene" las variables locales estas desaparecen.. por lo que no habria necesidad de usar el RELEASE ALL Si estoy equivocado.. que alguien me ilumine.. SALUDOS
límite de variables Locales
Hace unos años tuve un problema parecido: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=4927&p=21809#p21809">viewtopic.php?f=6&t=4927&p=21809#p21809</a><!-- l --> La verdad es que no sé si se solucionó este asunto pues resolví el problema por otros caminos, y con poster...
límite de variables Locales
Hola Manuel, Muchas gracias. Al final he tenido que pulir el número de variables y funciona OK. El bug de Harbour sigue sin ser corregido. Un saludo
límite de variables Locales
Mgsoft, ¿ Que version de harbour usas ?, asi se prodria hacer un ejemplo que falle para enviarlo a los programadores de harbour para que lo solucionen. Atte., Lautaro Moreira
límite de variables Locales
Gente; esto es lo que me contestó Walter Negro, integrante del equipo xHarbour, en el foro PuertoSur, al respecto [quote:db0uk76p]De donde surge la necesidad de tener tanta cantidad de variables locales? No debería implementarse de otra forma, ejemplo con arrays? Y con esta pregunta no estoy intentando quitar responsa...
mac address
Can any please help me how to find mac address of the PC ? Thanks in advance NageswaraRao
mac address
You may use GETNETCARDID()
mac address
Thanks Mr. Antonio. But I am getting unlinked external "GetAdapetersInfo" referenced by function "NETCRDID" I am using xHarbour with FWH. Can you help me with this please? Regards Nageswararao
mac address
NageswaraRao, Are you using xHarbour commercial ?
mac address
Add IPHLPAPI.LIB from bcc55 into your script if your are using bcc
mac address
I am using xharbour with bcc55. not the commercial version. i included the lib iphlpapi.lib as advised by srrao and now its working fine. thanks mr. antonio and mr. sanjay
mac address
NageswaraRao, Yes, right, that library is needed. We already provided it included in samples\buildh.bat. I guess you are using an older version of buildh.bat.
mac address
Hi, I'm getting a unresolved external __chkstk when I try to use this
mac address
Alex, Try linking Borland cw32.lib
mac address
A borland library with commercial xharbour?
mac address
ops, my mistake <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Then you should require it to xHB guys. If I am not wrong, __chkstk stands for check stack, so you could safely create a dummy C function with such name void _chkstk( void ) { }
mac address
If I add that dummy function, GetNetCardID kills my app. Will ask on xhb newsgroup Alex
mac address
Alex, > Will ask on xhb newsgroup Yes, its the right way <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
mac address
Alex, Just out of curiosity, please try it this way: BOOL _chkstk( void ) { return TRUE; }
mac address
No luck <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Busy trying to get following code to work. It compiles. I just need to figure out how to return an array of adapter names and addresses [code:58gsfl3g] #include <iphlpapi&#46;h> // Fetches the MAC address and pri...
mac address
Alex, Check the source code of Harbour's Directory() function. It shows how to create, fill and return a multidimensional array.
mac address
Found that code thanks. All working now. I couldn't format the hex numbers nicely in c using sprintf, so thats why I've got the extra code, and returning each byte separately [code:20nr8361] Function Dec2x&#40;pnNo, pnBase&#41; Local cRetVal &#58;= "" Local nCount &#58;= 0 Local acDig...
mac address
I made some changes in the function above to getting more information about the NIC. This is the code: [code:1246xj41]#include "fivewin&#46;ch" /* * Retrieves adapter information for the local computer&#46; * Original code by AlexSchaft * http&#58;//fivetechsoft&#46;com/forums/viewtopic&#46;php?t=77&postdays=0&post...
mac address
Thanks for that. The %.2x syntax seems to crash under commercial xhb. Alex
mac address
Try without the dot (%2x). EMG
mac address
I found my problem <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> A mac address is 17 characters, so in xbase a 17 character string is enough, but you need another character for \0 in C. So initializing cMacAddress as [code:1z7gw74x] char cMacAddress&#91...
mac address
Obvious. Great! EMG
mac address
Alex,your function is not working with Vista / Vista64. It returns an empty array.Do you have a version that runs with vista ?
mac address
Stefan,You can use FWH GetNetCardID()It returns an array if there are more than one network adapters:[code:2av9ip6f] if ValType&#40; GetNetCardID&#40;&#41; &#41; == "C" MsgInfo&#40; GetNetCardID&#40;&#41; &#41; else aAdapters = GetNetCardID&#40;&#41; for n = 1 to Len&#40; aAdapters &#41; ...
mac address
Haven't bothered with a version for Vista yet. I see a new API is recommended for XP/Vista, which I haven't investigated yet.
mac address
Antonio,I made some tests and I get some curios results.Alex function is working with XPx64, not with XPx32 Sp3 and not with Vistax32/x64.XPx32: detects 1 NIC, returns wrong MAC (1 NIC present)Vista32: detects 0 NIC, returns wrong MAC (2 NIC present)GetNetcardID ():XPx32: detects 1 NIC, returns wrong MAC (1 NIC present...
mac address
MS suggests a new api function to be used with XP and later, GetAdaptersAdresses().This function does not seem to be available with bcc55, or I´m linking the wrong libs. This is my try to convert Alex function to this new api-function.I´m getting an unresolved external "GetAdaptersAdresses". There may be some other err...
mac address
Stefan,It seems as there is a typo in the function name. It should be:GetAdaptersAddresses()Notice the "dd"<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/aa365915.aspx">http://msdn.microsoft.com/en-us/library/aa365915.aspx</a><!-- m -->You have to create an import library from Windows Iphlp...
mac address
Antonio, yes, thanks, a small typo I hadn´t seen <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> I got it working so far, I have only 2 warnings I don´t undestand. Maybe you have an idea what to do[color=red:ts7vd24q]Warning: Suspicious pointer converversion[/color:ts7vd24q]hb_ar...
mac address
Stefan,hb_arraySet(pSubArray, 1, hb_itemPutC(pItem, [color=red:32jqi1lo]( char * )[/color:32jqi1lo] pAdapterInfo->Description));andhb_arraySet(pSubArray, 3, hb_itemPutC(pItem, [color=red:32jqi1lo]( char * )[/color:32jqi1lo] pAdapterInfo->FriendlyName));
mac address
Stefan,This function is returning an empty array here on my computer.I have three network adapters.FWH GetNetCardID() is working fine here.
mac address
Antonio,I think I found the reason why it´s sometimes working and sometimes not.It seems to depend on the pc the app is compiled. Compiling it with my office pc (XP64) it only runs on this pc, on others it crashes without error log, only a system message that there is a problem with he app.If I compile it on my home pc...
mac address
Antonio,[quote:15q1vhx8]This function is returning an empty array here on my computer. [/quote:15q1vhx8]sorry, I forgot to insert these lines [code:15q1vhx8] hb_arrayAdd&#40;paAddress, pSubArray&#41;; hb_itemRelease&#40;pSubArray&#41;; [/code:15q1vhx8] before pAdapterInfo = pAdapterInfo->Next;. Now it´s working. ...
mac address
Stefan,Use this FWH function:char * WideToAnsi( LPWSTR );
mac address
Remember to use the memory that WideToAnsi() allocates:char * pText = WideToAnsi( <wide_string> );use pText ...hb_xfree( pText );
mac address
Thanks,I added the following lines [code:3g7k43vw]char* pText; &#46;&#46;&#46;&#46;&#46;&#46; pText = HB_FUN_WIDETOANSI &#40;pAdapterInfo->Description&#41;; hb_arraySet&#40;pSubArray, 1, hb_itemPutC&#40;pItem, pText&#41;&#41;; hb_xfree &#40;pText&#41;;[/code:3g7k43vw]on runtime I get Unrecoverable error...
mac address
Dear Antonio,[quote="StefanHaupt":1q6kks0e]It seems to depend on the pc the app is compiled. Compiling it with my office pc (XP64) it only runs on this pc, on others it crashes without error log, only a system message that there is a problem with he app.[/quote:1q6kks0e]Ok, finally I got it. <!-- s:D --><img src="{SMI...
mac address
Stefan,>pText = HB_FUN_WIDETOANSI (pAdapterInfo->Description); on runtime I get Unrecoverable error 9023: hb_xgrab requested to allocate zero bytes >That means that pAdapterInfo->Description contains a zero length string, thats why hb_xgrab() fails when it is requested to allocate zero bytes.
mac address
Stefan,>Maybe the addresses of the functions in the dll differs from one version to another. >Yes, thats possible. In those cases, the address of the used function should be obtained using GetProcAddress():<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/ms683212(VS.85">http://msdn.microsoft....
macexec with variable
Hello, Is it possible to add a 'variable' to the MacExec() command? What I want is the following: From my program I want to run a .sh file to make directories and move files. So I want to use the next command: MacExec( "terminal" MoveFilesLite.sh )
macexec with variable
It seems as we have to use this method: [url:kso9z84x]https&#58;//developer&#46;apple&#46;com/reference/appkit/nsworkspace/1534810-launchapplication[/url:kso9z84x] I am going to implement it
macexec with variable
Here we have two ways to do it: [url:3ec0o3d9]http&#58;//stackoverflow&#46;com/questions/5048677/launching-an-mac-app-with-objective-c-cocoa[/url:3ec0o3d9] lets see which one is the right one to use
macexec with variable
This should work fine: [code=fw:ey6le3ra]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MACEXEC <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;NSWorkspace * w...
macexec with variable
This code compiles fine: [code=fw:1h7aprt8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MACEXEC <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   NSWorkspace * workspace...
macexec with variable
Hello Mastintin, Thanks for your suggestion, but this does not work. What I want is the following: I use packages to make a pkg from my app. This pkg installs the program in folder programs and databases in folder users/shared/plantenkennis. Now I want to run a .sh script which makes folder plantenkennis in users/$us...
macexec with variable
More simple .... use TASKEXEC (). This not run property for problems with script paths but build.sh is launch . @ 150, 40 BUTTON "Terminal" ACTION msginfo( TaskExec( "/bin/sh", Path()+"/build.sh","testget.prg" ) )
macexec with variable
> But if I run TaskExec( "/bin/sh", "MoveFilesLite.sh", ), nothing happens? the path of MoveFilesLite.sh is missing
macexec with variable
Hello Antonio, Yes, you're right. Forgot the path, with the path it works! Thanks again both for the help.
macexec with variable
very good
macro substitution & in fieldnames
It is a piece of code for a mapping system I have 3 databases dbf1 -> with just 1 record filled with fieldnames of dbf 2 ID : "STYLE" NAME : "TITLE" CATMAIN : "CAT1" ... dbf2 -> actual datafile (source data) STYLE : "200444" TITLE : "Safetyshoes dassy" CAT1 : "Safetyshoes" .... dbf3 -> target datafile where i what...
macro substitution & in fieldnames
Look, I hope it's what you need [code=fw:1gs9ywpd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br />MEMVAR cAlias<br /><br /><span style="color: #B900B9;">//-----------------------------------...
macro substitution & in fieldnames
Dear Marc, I use as you did but a bit different. [code=fw:2lc2znpr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />RvName := <span style="color: #ff0000;">'MHS->MHS_RV'</span>+<span style="color: #0000ff;">right</span><span style="color: #000000;">&#40;</span>dtos<span style="color: #000000;">&#40;</sp...
macro substitution & in fieldnames
Macro substitution is bad: - slow (more slow than dbf field functions) - avoid compiler syntax analisys. Better harbour programming style is do not use macro substitution, so: [code=fw:28eghbkn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// With preprocessor &nbsp;is more ...
macro substitution & in fieldnames
Marc: Look at this examples code: PADRON->(DBGOTOP()) DO WHILE !PADRON->(EOF()) IF !TMOVMES->(DBSEEK(CONCEPTO->COD+PADRON->MP,.F.)) TPADRON->(DBAPPEND()) COPIAREG('TPADRON','PADRON') ENDIF PADRON->(DBSKIP()) ENDDO FUNCTION COPIAREG(xBaseEntra,xBaseSale) Local ...