starting odbc from an application

info info@REDACTED
Fri Jun 12 19:52:40 CEST 2009


Hi all,

I would like to start the odbc application from one gen_server module localized in an application (on windows).

I tried:

init()->
 case odbc:start()  of
    {ok}-> ...
    {error,Reason}->...
end

I have one runtime error: {error,{shutdown,{my_application,start,[normal,[]]}}}

I also tried:
init()->
 case application:start(odbc)  of
    {ok}-> ...
    {error,Reason}->...
end

same runtime error

Note: from the shell, odbc starts correctly with the command application:start(odbc).
I also tried to put odbc in my .app file but not better.
What is the correct procedure ? or the programming error ?

John


More information about the erlang-questions mailing list